bitcoin-rpc-promise
A modern promise based node.js library for communicating with Bitcoin daemon.
Install
npm install --save bitcoin-rpc-promise
Usage
Start bitcoin daemon with rpc support:
./bitcoind --server=1 --rpcuser=user --rpcpassword=password
Connect to daemon endpoint and send rpc commands:
const BitcoinRpc = ; let btc = 'http://user:password@localhost:8332'; // call named wrappersbtc; // or call named wrappers with all lower casebtc; // or call raw commandsbtc;