node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

chain-unofficial

chain-unofficial

Installation

you can install the npm module here

npm install chain-unofficial

See abstract-common-blockchain for API

Chain's Abstract Common Blockchain Coverage

Use this link to see what Chain supports

Convention

Standard convention is described fully in the types.json file in the link above.

Usage

simply require the npm module at the top of the file

var chain = require('chain-unofficial');

you may specify the options you wish to make a call like so:

var chainClient = chain({
  network: "bitcoin",
  key: "your chain api key",
  secret: "your chain api secret"
});
 
//example call 
chainClient.Addresses.Unspents(["address 1", "address 2", ...], callback);

alternatively you can check out the comments above each function in lib if you wish to understand what each function expects and returns.

Maintainers