Skip to content

A client library to connect to Bitcoin Core and B3 RPC in JavaScript.

License

Notifications You must be signed in to change notification settings

AltFreq07/b3coind-rpc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

b3coind-rpc.js

NPM Package Build Status Coverage Status

A client library to connect to Bitcoin Core and B3Coin RPC in JavaScript.

Get Started

b3coind-rpc.js runs on node, and can be installed via npm:

npm install b3coind-rpc

Examples

var run = function() {
  var bitcore = require('bitcore');
  var RpcClient = require('b3coind-rpc');

  var config = {
    protocol: 'http',
    user: 'user',
    pass: 'pass',
    host: '127.0.0.1',
    port: '5647',
  };

  var rpc = new RpcClient(config);

  var txids = [];

  function showBlockCount(callback){
    rpc.getBlockcount(function (err, ret) {
        callback(err,ret);
    });
  }

  showBlockCount(function(err,ret){
    if(err){
      console.log(err);
    }else{
      console.log(ret.result);
    }
  });
  
  

License

Code released under the MIT license.

Copyright 2013-2018 BitPay, Inc.

About

A client library to connect to Bitcoin Core and B3 RPC in JavaScript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%