Notoriously Problematic Merge

    coininfo

    5.2.1 • Public • Published

    coininfo

    build status

    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 Bitcore or bitcoinjs-lib?

    bitcoinjs-lib example:

    var coininfo = require('coininfo')
    var bitcoin = coininfo.bitcoin.main
    var bitcoinBitcoinJSLib = bitcoin.toBitcoinJS()

    Bitcore example:

    var coininfo = require('coininfo')
    var bitcoin = coininfo.bitcoin.main
    var bitcoinBitcoreLib = bitcoin.toBitcore()

    Pull requests?

    Follow the canonical example:

    https://github.com/cryptocoinjs/coininfo/blob/master/lib/coins/btc.js

    License

    MIT

    Install

    npm i coininfo

    DownloadsWeekly Downloads

    5,658

    Version

    5.2.1

    License

    MIT

    Unpacked Size

    34.7 kB

    Total Files

    27

    Last publish

    Collaborators

    • nadav
    • midnightlightning
    • sidazhang
    • fanatid
    • jprichardson
    • junderw
    • ryanzim
    • kklash