Bitcoind JsonRPC client for node and the browser.
This client should be compatible with all
bitcoin
forks, to name a few: Dash, PivX, etc...
npm install --save bitcoind-client
const { createCall } = require('bitcoind-client');
const call = createCall({
rpchost: '127.0.0.1',
rpcuser: 'user',
rpcpassword: 'password',
rpcport: '9998',
});
call('getwalletinfo')
.then(result => console.info(result))
.catch(e => console.error(e))
;
For node you need to require a
fetch
implementation.isomorphic-fetch
is recommended and marked as a peerDependency.npm install --save isomorphic-fetch
npm test
npm run prettier
MIT