coininfo-machinecoin
v0.1.0
Published
JavaScript component for crypto currency specific information. Modified for Machinecoin.
Downloads
2
Maintainers
Readme
coininfo-machinecoin
JavaScript component for crypto currency specific information such as version numbers, DNS seeds, etc. Works in Node.js and the browser.
This version is modified to work with Machinecoin.
Installation
npm i --save coininfo-machinecoin
Usage
var coininfo = require('coininfo')
console.dir(coininfo('MAC'))
// =>
/*
{ versions:
{ public: 48,
private: 176,
scripthash: 5,
bip32: { public: 27108450, private: 27106558 } } }
*/
Could also:
var machinecoin = coininfo.machinecoin.main
Useful to use in conjunction with coinkey and coinstring.
Want to Use With Bitcore or bitconjs-lib?
bitcoinjs-lib example:
var coininfo = require('coininfo')
var machinecoin = coininfo.machinecoin.main
var machinecoinBitcoinJSLib = machinecoin.toBitcoinJS()
Bitcore example:
var coininfo = require('coininfo')
var machinecoin = coininfo.machinecoin.main
var machinecoinBitcoreLib = machinecoin.toBitcore()
License
MIT