Skip to content
JavaScript component for crypto currency specific information.
JavaScript
Branch: master
Clone or download
Pull request Compare This branch is 6 commits ahead, 2 commits behind cryptocoinjs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
lib
test
.gitignore
.travis.yml
CHANGELOG.md
README.md
package-lock.json
package.json

README.md

blockcore-coininfo

build status

JavaScript component for crypto currency specific information such as version numbers, DNS seeds, etc. Works in Node.js and the browser.

Fork

THis library is a fork of the original coininfo with support added for Blockcore-based chains and Proof-of-Stake.

Installation

npm i blockcore-coininfo

Usage

var coininfo = require('blockcore-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 bitconjs-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

You can’t perform that action at this time.