Skip to content

JavaScript component for crypto currency specific information.

Notifications You must be signed in to change notification settings

raven-community/coininfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Ravencore or ravencoinjs-lib?

ravencoinjs-lib example:

var coininfo = require('coininfo')
var ravencoin = coininfo.ravencoin.main
var RavencoinJSLib = ravencoin.toRavencoinJS()

Ravencore example:

var coininfo = require('coininfo')
var ravencoin = coininfo.ravencoin.main
var RavencoreLib = ravencoin.toRavencore()

Pull requests?

Follow the canonical example:

https://github.com/raven-community/coininfo/blob/master/lib/coins/rvn.js

License

MIT

About

JavaScript component for crypto currency specific information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published