Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A nodejs Implementation of the blockchain.info JSON API
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
README.md
examples.js
package.json

README.md

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);
});
Something went wrong with that request. Please try again.