2.2.11 • Published 7 years ago
bitcoind-client v2.2.11
bitcoind-client
Bitcoind JsonRPC client for node and the browser.
This client should be compatible with all
bitcoinforks, to name a few: Dash, PivX, etc...
Install
npm install --save bitcoind-clientUsage
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
fetchimplementation.isomorphic-fetchis recommended and marked as a peerDependency.npm install --save isomorphic-fetch
Development
npm test
npm run prettierLicence
MIT