Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lepetitbloc/bitcoind-client
- Owner: LePetitBloc
- License: mit
- Created: 2018-03-05T15:41:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-07T11:35:22.000Z (over 6 years ago)
- Last Synced: 2024-11-20T11:55:56.048Z (about 2 months ago)
- Topics: bitcoind, json-rpc, nodejs
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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