An official Node module for interacting with the Blockchain.info API.
Installation via npm:
$ npm install --save blockchain.infoImporting:
var blockchain = require('blockchain.info');All functions in this module return a JavaScript promise for handling asynchronous actions.
This module consists of these submodules:
MyWallet- Interact with or create a Blockchain Walletblockexplorer- View data for addresses, blocks, transactions, and moreexchange- Get real-time bitcoin exchange ratespushtx- Push custom transactionsReceive- Receive notifications for paymentsSocket- Live notifications for transactions and blocksstatistics- Fetch historical blockchain data and statistics
You can access sub-modules from the properties of the imported main module, or by importing them individually.
Individual import:
var MyWallet = require('blockchain.info/MyWallet');Property import:
var MyWallet = require('blockchain.info').MyWallet;