Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

blockchain-node

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

blockchain-node

Blockchain.info Node.js Wrapper

unpublished
latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

blockchain-node

Blockchain.info Bitcoin Wrapper For Node.js

Wesite: https://blockchain.info

API documentation : https://blockchain.info/api/json_rpc_api

Installation

npm install blockchain-node --save

Usage

Require blockchain-node

  var blockchain = require('blockchain-node');

Instantiate

	var bc = new blockchain({
      username: 'username',
      password: 'password'
  });

Example Usage

    // Get info
    bc.getInfo(function(err, info) {
        // info;
    });
  // Get balance
  bc.getBalance(function(err, balance) {
      // balance;
  });

List of commands

getBalance =>             (confirmations : number, callback : function)

getInfo =>                (callback : function)

listAccounts =>           (callback : function)

getAddressesByAccount =>  (account : string, callback : function)

listReceivedByAccount =>  (account : string, callback : function)

listTransactions =>       (callback : function)

validateAddress =>        (address : string, callback : function)

getTransaction =>         (txid : string, callback : function)

getBlockCount =>          (callback : function)

getBlockHash =>           (index : number, callback : function)

getDifficulty =>          (callback : function)


**UNTESTED**

sendFrom =>               (to : string, from : string, amount : number, callback : function)

move =>                   (to : string, from : string, amount : number, callback : function)

Tests

npm test

Contributing

Contact or fork.

Email : richardmacarthy@hotmail.com

Website : www.cryptogrind.com

Release History

  • 1.0.0 Initial release

  • 1.0.5 New Methods

  • 1.0.6 Some refactoring

Issues

Add issue on github.

Keywords

Blockchain

FAQs

Package last updated on 01 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts