blockchain-api-enbitcoins
v0.0.7
Published
A nodejs implementation of the blockchain.info JSON API
Downloads
6
Maintainers
Readme
Blockchain-API-enBitcoins
This is a simple implementation of the blockchain.info JSON API written for nodejs.
For all available methods please visit: http://blockchain.info/api/blockchain_api
Synopsis
var blockchain = require('./lib/blockchain'),
bc = new blockchain();
bc.API('tx-index', '1000', function (res, err) {
if (err) return console.log('Error! ', err);
console.log(res);
});
bc.API('block-height', '1000', function (res, err) {
if (err) return console.log('Error! ', err);
console.log(res);
});
bc.API('address', '1LTNyzQDxyAU89BaQwk8vaePADnXYErYda', function (res, err) {
if (err) return console.log('Error! ', err);
console.log(res);
});