mubdiinfo
v5.3.3
Published
JavaScript component for crypto currency specific information.
Downloads
11
Maintainers
Readme
mubdiinfo
JavaScript component for crypto currency specific information such as version numbers, DNS seeds, etc. Works in Node.js and the browser.
Installation
npm i mubdiinfo
Usage
var mubdiinfo = require('mubdiinfo')
console.dir(mubdiinfo('LTC')) //use LTC-TEST for testnet
// =>
/*
{ versions:
{ public: 48,
private: 176,
scripthash: 5,
bip32: { public: 27108450, private: 27106558 } } }
*/
Could also:
var litecoin = mubdiinfo.litecoin.main
var litecoinTest = mubdiinfo.litecoin.test
Useful to use in conjunction with mubdiinfo and coinstring.
Want to Use With Bitcore or bitcoinjs-lib?
bitcoinjs-lib example:
var mubdiinfo = require('mubdiinfo')
var bitcoin = mubdiinfo.bitcoin.main
var bitcoinBitcoinJSLib = bitcoin.toBitcoinJS()
Bitcore example:
var mubdiinfo = require('mubdiinfo')
var bitcoin = mubdiinfo.bitcoin.main
var bitcoinBitcoreLib = bitcoin.toBitcore()
Pull requests?
Follow the canonical example:
https://github.com/panchadijaya/mubdIinfo/lib/coins/btc.js
License
MIT