{"id":13772852,"url":"https://github.com/fanatid/bitcoind-rpc-client","last_synced_at":"2025-06-17T01:35:31.924Z","repository":{"id":36904245,"uuid":"41211264","full_name":"fanatid/bitcoind-rpc-client","owner":"fanatid","description":"Connect to Bitcoin Core via JSON-RPC in JavaScript.","archived":false,"fork":false,"pushed_at":"2015-11-24T06:50:40.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T23:18:34.970Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fanatid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-22T14:39:41.000Z","updated_at":"2021-11-07T15:55:25.000Z","dependencies_parsed_at":"2022-09-07T09:51:09.269Z","dependency_job_id":null,"html_url":"https://github.com/fanatid/bitcoind-rpc-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fanatid/bitcoind-rpc-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanatid%2Fbitcoind-rpc-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanatid%2Fbitcoind-rpc-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanatid%2Fbitcoind-rpc-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanatid%2Fbitcoind-rpc-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fanatid","download_url":"https://codeload.github.com/fanatid/bitcoind-rpc-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanatid%2Fbitcoind-rpc-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260272450,"owners_count":22984317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:08.529Z","updated_at":"2025-06-17T01:35:31.875Z","avatar_url":"https://github.com/fanatid.png","language":"JavaScript","funding_links":[],"categories":["List of content"],"sub_categories":["RPC"],"readme":"# bitcoind-rpc-client\n\n[![NPM Package](https://img.shields.io/npm/v/bitcoind-rpc-client.svg?style=flat-square)](https://www.npmjs.org/package/bitcoind-rpc-client)\n[![build status](https://img.shields.io/travis/fanatid/bitcoind-rpc-client.svg?branch=master\u0026style=flat-square)](http://travis-ci.org/fanatid/bitcoind-rpc-client)\n[![Coverage Status](https://img.shields.io/coveralls/fanatid/bitcoind-rpc-client.svg?style=flat-square)](https://coveralls.io/r/fanatid/bitcoind-rpc-client)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n[![Dependency status](https://img.shields.io/david/fanatid/bitcoind-rpc-client.svg?style=flat-square)](https://david-dm.org/fanatid/bitcoind-rpc-client#info=dependencies)\n\nBitcoind RPC client with blackjack and hookers.\n\nCurrent rpc client support promises and callbacks.\n\n## Installation\n\n```bash\nnpm install bitcoind-rpc-client\n```\n\n## Commands\n\nYou can find list of all available commands in [source code](blob/master/src/methods.js).\n\n## Examples\n\n### Create client\n\n```js\nvar client = new RpcClient({\n  host: '127.0.0.1',\n  port: 18332\n});\nclient.set('user', 'bitcoinrpc')\n```\n\n### getnewaddress with callback\n\n```js\nclient.getNewAddress(function (err, result) {\n  console.log(err, result) // null, {result: {...}, error: null}\n})\n```\n\n### getnewaddress with promise\n\n```js\nclient.getNewAddress().then(function (result) {\n  console.log(result) // {result: {...}, error: null}\n})\n```\n\n### alias of getnewaddress with promise\n\n```js\nclient.getnewaddress().then(function (result) {\n  console.log(result) // {result: {...}, error: null}\n})\n```\n\n### getnewaddress using `cmd`\n\n```js\nclient.cmd('getnewaddress').then(function (result) {\n  console.log(result) // {result: {...}, error: null}\n})\n```\n\n### batch (array form)\n\n```js\nclient.batch([\n  {method: 'getnewaddress', params: ['myaccount']},\n  {method: 'getnewaddress', params: ['myaccount']}\n])\n.then(function (result) {\n  console.log(result) // [{result: {...}, error: null}, {result: {...}, error: null}]\n})\n```\n\n### batch (chained form)\n\n```js\nclient.batch()\n  .getInfo()\n  .clear()\n  .getNewAddress('myaccount')\n  .getNewAddress('secondaccount')\n  .call()\n  .then(function (result) {\n    console.log(result) // [{result: {...}, error: null}, {result: {...}, error: null}]\n  })\n```\n\n## License\n\nThis software is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffanatid%2Fbitcoind-rpc-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffanatid%2Fbitcoind-rpc-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffanatid%2Fbitcoind-rpc-client/lists"}