digibyte-rpc
v1.0.7
Published
Allows easy access to DigiByte, Bitcoin, ect wallets
Downloads
18
Readme
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.