blockchain-wallet

blockchain.info wallet API client for node.js

node-blockchain-wallet

An unofficial node.js client for the blockchain.info wallet api.

node-blockchain-wallet is available as blockchain-wallet on npm.

npm install blockchain-wallet
var BlockchainWallet = require('blockchain-wallet'),
    blockchainWallet = new BlockchainWallet("YourGuid", "YourPassword"),
    // Certain API methods require a second password if the wallet is second password protected, while others don't at all. 
    transactionBlockchainWallet = new BlockchainWallet("YourGuid", "YourPassword", "YourSecondPassword");
 
blockchainWallet.list(function(errdata) {
  if(err) {
    throw err;
  }
 
  console.log(data);
});
 
// Send a donation to blockchain.info. 
transactionBlockchainWallet.payment("1JArS6jzE3AJ9sZ3aFij1BmTcpFGgN86hA", 500, {"note": "Thanks"}, function(errdata) {
  if(err) {
    throw err;
  }
 
  console.log(data);
});

A method-by-method reference is available on the wiki.

This module is ISC licensed.