The Official Node.js SDK for Chain's Bitcoin API
$ npm install chain-node
var Chain = require('chain-node');
var chain = new Chain({
keyId: 'your-key-id',
keySecret: 'your-key-secret',
blockChain: 'bitcoin'
});
chain.getAddress('17x23dNjXJLzGMev6R63uyRhMWP1VHawKc', function(err, resp) {
console.log('balance=' + resp.total.balance);
});
The Chain API Documentation is available at https://chain.com/docs/node
$ npm publish
$ git tag 0.0.X
$ git push origin master --tags