install browserify
browserify index.js --standalone agama > agamalib.js
- add coin network params to src/bitcoinjs-networks.js
- add electrum servers list to src/electrum-servers.js
- add tx fee to src/fees.js
- add an explorer link to src/coin-helpers.js
- add electrum servers list to src/electrum-servers.js
- add tx fee to src/fees.js
- add asset chain ticker and an explorer link to src/coin-helpers.js
- add token contract id to src/eth-erc20-contract-id.js
- add token decimals value to src/eth-erc20-decimals.js, read instructions
install babel cli
npm run build
example:
var fromSats = require('agama-wallet-lib/build/utils').fromSats;