Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cryptocoinjs/coininfo
JavaScript component for crypto currency specific information.
https://github.com/cryptocoinjs/coininfo
Last synced: 3 days ago
JSON representation
JavaScript component for crypto currency specific information.
- Host: GitHub
- URL: https://github.com/cryptocoinjs/coininfo
- Owner: cryptocoinjs
- Created: 2014-03-10T21:11:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-10T11:59:09.000Z (7 months ago)
- Last Synced: 2024-05-22T06:44:18.364Z (7 months ago)
- Language: JavaScript
- Size: 147 KB
- Stars: 115
- Watchers: 11
- Forks: 114
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
coininfo
========[![build status](https://api.travis-ci.org/cryptocoinjs/coininfo.svg)](http://travis-ci.org/cryptocoinjs/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
-----```js
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:
```js
var litecoin = coininfo.litecoin.main
var litecoinTest = coininfo.litecoin.test
```Useful to use in conjunction with [coinkey](https://github.com/cryptocoinjs/coinkey) and [coinstring](https://github.com/cryptocoinjs/coinstring).
Want to Use With Bitcore or bitcoinjs-lib?
-----------------------------------------**bitcoinjs-lib example:**
```js
var coininfo = require('coininfo')
var bitcoin = coininfo.bitcoin.main
var bitcoinBitcoinJSLib = bitcoin.toBitcoinJS()
```**Bitcore example:**
```js
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