Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lepetitbloc/bitcoind-client

:speech_balloon: Modern `bitcoind` JSON-RPC client for node and the browser
https://github.com/lepetitbloc/bitcoind-client

bitcoind json-rpc nodejs

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# bitcoind-client

[![NPM package version][npm-svg]][npm-url]
[![Build Status on Travis][travis-svg]][travis-url]

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

[npm-svg]: https://img.shields.io/npm/v/bitcoind-client.svg
[npm-url]: https://npmjs.org/package/bitcoind-client
[travis-svg]: https://travis-ci.org/LePetitBloc/bitcoind-client.svg
[travis-url]: https://travis-ci.org/LePetitBloc/bitcoind-client