blockchain-info-ematiu

0.0.1 • Public • Published

Blockchain-JSON-API

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('blockchain-json-api');

var bc = new blockchain();

bc.API('tx-index', '1000', function (res, err) {
  if (err)
    console.log('Error! ', err)
  else
    console.log(res);  
});

bc.API('block-height', '1000', function (res, err) {
  if (err)
    console.log('Error! ', err)
  else
    console.log(res);
});

bc.API('address', '1LTNyzQDxyAU89BaQwk8vaePADnXYErYda', function (res, err) {
  if (err)
    console.log('Error! ', err)
  else
    console.log(res);
});

/blockchain-info-ematiu/

    Package Sidebar

    Install

    npm i blockchain-info-ematiu

    Weekly Downloads

    1

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • ematiu