Package Exports
- coininfo
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (coininfo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
coininfo
JavaScript component for crypto currency specific information such as version numbers, DNS seeds, etc. Works in Node.js and the browser.
Official documentation:
http://cryptocoinjs.com/modules/currency/coininfo/
Installation
npm i --save coininfo
Usage
var coininfo = require('coininfo')
console.dir(coininfo('LTC')) //use LTC-TEST for testnet
// =>
/*
{ versions:
{ public: 48,
private: 176,
scripthash: 5,
bip32: { public: 27108450, private: 27106558 } } }
*/
Could also:
var litecoin = coininfo.litecoin.main
var litecoinTest = coininfo.litecoin.test
Useful to use in conjunction with coinkey and coinstring.
Pull requests?
Follow the canonical example:
https://github.com/cryptocoinjs/coininfo/blob/master/lib/coins/btc.js
License
MIT