Edge currency plugin for account based currencies
npm install edge-currency-accountbased
Plugins for edge-core-js, handling many networks not derived from Bitcoin.
These are compatible with edge-core-js v0.21.2 or later.
First, add this library to your project:
``sh`
npm i -s edge-currency-accountbased
For Node.js, you should call addEdgeCorePlugins to register these plugins with edge-core-js:
`js
const { addEdgeCorePlugins, lockEdgeCorePlugins } = require('edge-core-js')
const plugins = require('edge-currency-accountbased')
addEdgeCorePlugins(plugins)
// Once you are done adding plugins, call this:
lockEdgeCorePlugins()
`
You can also add plugins individually if you want to be more picky:
`js`
addEdgeCorePlugins({
ethereum: plugins.ethereum
})
The bundle located in dist/edge-currency-accountbased.js will automatically register itself with edge-core-js. Just serve the entire dist directory along with your app, and then load the script:
`html