Skip to content

💬 Modern `bitcoind` JSON-RPC client for node and the browser

License

Notifications You must be signed in to change notification settings

LePetitBloc/bitcoind-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitcoind-client

NPM package version Build Status on Travis

Bitcoind JsonRPC client for node and the browser.

This client should be compatible with all bitcoin forks, to name a few: Dash, PivX, etc...

Install

npm install --save bitcoind-client

Usage

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

Development

npm test
npm run prettier

Licence

MIT

About

💬 Modern `bitcoind` JSON-RPC client for node and the browser

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published