@wagerr-wdk/cryptoassets
TypeScript icon, indicating that this package has built-in type declarations

1.7.3 • Public • Published

Cryptoassets js

Build Status Standard Code Style MIT License Cryptoassets

Crypto assets data and utilities through a standard inteface

Installation

npm install @liquality/cryptoassets --save

Usage

> const { assets, chains, currencyToUnit } = require('@liquality/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('0x5A0b54D5dc17e0AadC383d2db43B0a0D3E029c4c)
true

License

MIT

Package Sidebar

Install

npm i @wagerr-wdk/cryptoassets

Weekly Downloads

0

Version

1.7.3

License

MIT

Unpacked Size

570 kB

Total Files

27

Last publish

Collaborators

  • wagerr-wdk