Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 554 Bytes

readme.md

File metadata and controls

19 lines (14 loc) · 554 Bytes

digibyte-rpc

Installation

npm install digibyte-rpc

Usage

const DigiByteRPC=require('digibyte-rpc');
let dgbWallet=new DigiByte('username','password','localhost',14022);
let height=dgbWallet.getBlockCount();  //or any command on https://developer.bitcoin.org/reference/rpc/index.html
console.log(height);

Issues

Unfortunately there is a known issue that username and password cannot contain any special characters like % or $ this seems to be a limitation with nodejs, and the got library.