rpgcoininfo
v4.3.2
Published
JavaScript component for crypto currency specific information.
Downloads
1
Maintainers
Readme
coininfo
JavaScript component for crypto currency specific information such as version numbers, DNS seeds, etc. Works in Node.js and the browser.
Installation
npm i 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.
Want to Use With RPGcore or rpgcoinjs-lib?
rpgcoinjs-lib example:
var coininfo = require('coininfo')
var rpgcoin = coininfo.rpgcoin.main
var RPGcoinJSLib = rpgcoin.toRPGcoinJS()
RPGcore example:
var coininfo = require('coininfo')
var rpgcoin = coininfo.rpgcoin.main
var RPGcoreLib = rpgcoin.toRPGcore()
Pull requests?
Follow the canonical example:
https://github.com/RPGCoin/rpgcoininfo/blob/master/lib/coins/rpg.js
License
MIT