Crypto assets data and utilities through a standard interface
npm install @hashprotocol/cryptoassets --save
> const { assets, chains, currencyToUnit } = require('@hashprotocol/cryptoassets')
> assets.BTC.code
BTC
> assets.ETH.decimals
18
> currencyToUnit(assets.BTC, 1)
100000000
> chains.ethereum.safeConfirmations
3
> chains[assets.btc.chain].fees.unit
sat/b
> chains[assets.eth.chain].isValidAddress('0x6C63EDd59C54CAf809ACf55CC26Cb51b9f45C1A2')
true