{"id":13772837,"url":"https://github.com/bitpay/bitcoind-rpc","last_synced_at":"2025-05-16T11:05:01.372Z","repository":{"id":25885344,"uuid":"29325726","full_name":"bitpay/bitcoind-rpc","owner":"bitpay","description":"A client library to connect to Bitcoin Core RPC in JavaScript.","archived":false,"fork":false,"pushed_at":"2023-03-08T08:14:04.000Z","size":176,"stargazers_count":177,"open_issues_count":25,"forks_count":312,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-01T06:39:17.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bitpay.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-01-16T00:50:50.000Z","updated_at":"2025-02-17T14:16:44.000Z","dependencies_parsed_at":"2024-01-15T03:41:29.317Z","dependency_job_id":null,"html_url":"https://github.com/bitpay/bitcoind-rpc","commit_stats":{"total_commits":87,"total_committers":25,"mean_commits":3.48,"dds":0.735632183908046,"last_synced_commit":"96257629cfa36f9e1a36500f69d209cdc3cba0a7"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitcoind-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitcoind-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitcoind-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitcoind-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitpay","download_url":"https://codeload.github.com/bitpay/bitcoind-rpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252933823,"owners_count":21827593,"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.383Z","updated_at":"2025-05-16T11:04:56.359Z","avatar_url":"https://github.com/bitpay.png","language":"JavaScript","readme":"bitcoind-rpc.js\n===============\n\n[![NPM Package](https://img.shields.io/npm/v/bitcoind-rpc.svg?style=flat-square)](https://www.npmjs.org/package/bitcoind-rpc)\n[![Build Status](https://img.shields.io/travis/bitpay/bitcoind-rpc.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/bitpay/bitcoind-rpc)\n[![Coverage Status](https://img.shields.io/coveralls/bitpay/bitcoind-rpc.svg?style=flat-square)](https://coveralls.io/r/bitpay/bitcoind-rpc?branch=master)\n\nA client library to connect to Bitcoin Core RPC in JavaScript.\n\n## Get Started\n\nbitcoind-rpc.js runs on [node](http://nodejs.org/), and can be installed via [npm](https://npmjs.org/):\n\n```bash\nnpm install bitcoind-rpc\n```\n\n## Examples\n\n```javascript\nvar run = function() {\n  var bitcore = require('bitcore');\n  var RpcClient = require('bitcoind-rpc');\n\n  var config = {\n    protocol: 'http',\n    user: 'user',\n    pass: 'pass',\n    host: '127.0.0.1',\n    port: '18332',\n  };\n\n  // config can also be an url, e.g.:\n  // var config = 'http://user:pass@127.0.0.1:18332';\n\n  var rpc = new RpcClient(config);\n\n  var txids = [];\n\n  function showNewTransactions() {\n    rpc.getRawMemPool(function (err, ret) {\n      if (err) {\n        console.error(err);\n        return setTimeout(showNewTransactions, 10000);\n      }\n\n      function batchCall() {\n        ret.result.forEach(function (txid) {\n          if (txids.indexOf(txid) === -1) {\n            rpc.getRawTransaction(txid);\n          }\n        });\n      }\n\n      rpc.batch(batchCall, function(err, rawtxs) {\n        if (err) {\n          console.error(err);\n          return setTimeout(showNewTransactions, 10000);\n        }\n\n        rawtxs.map(function (rawtx) {\n          var tx = new bitcore.Transaction(rawtx.result);\n          console.log('\\n\\n\\n' + tx.id + ':', tx.toObject());\n        });\n\n        txids = ret.result;\n        setTimeout(showNewTransactions, 2500);\n      });\n    });\n  }\n\n  showNewTransactions();\n};\n```\n\n## License\n\n**Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).**\n\nCopyright 2013-2018 BitPay, Inc.\n","funding_links":[],"categories":["List of content"],"sub_categories":["RPC"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitcoind-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitpay%2Fbitcoind-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitcoind-rpc/lists"}