{"_id":"@deepgreenai/bitcoind-rpc","_rev":"2-fd42491d859a5a94cf43710ddf456d16","name":"@deepgreenai/bitcoind-rpc","dist-tags":{"latest":"0.9.0"},"versions":{"0.9.0":{"name":"@deepgreenai/bitcoind-rpc","version":"0.9.0","keywords":["bitcoin","rpc"],"author":{"name":"Stephen Pair","email":"stephen@bitpay.com"},"license":"MIT","_id":"@deepgreenai/bitcoind-rpc@0.9.0","maintainers":[{"name":"deepgreenai","email":"william@deepgreenai.com"}],"contributors":[{"name":"Jeff Garzik","email":"jgarzik@bitpay.com"},{"name":"Manuel Araoz","email":"manuelaraoz@gmail.com"},{"name":"Matias Alejo Garcia","email":"ematiu@gmail.com"},{"name":"Braydon Fuller","email":"braydon@bitpay.com"}],"homepage":"https://github.com/bitpay/bitcoind-rpc","bugs":{"url":"https://github.com/bitpay/bitcoind-rpc/issues"},"dist":{"shasum":"ed165d7287cdee75902c5b71fbddbeb3120c9217","tarball":"https://registry.npmjs.org/@deepgreenai/bitcoind-rpc/-/bitcoind-rpc-0.9.0.tgz","fileCount":7,"integrity":"sha512-f+pjaaJRWfYunfQiJt9grqwDytY3szH77uSgFT+YEGyV99axF1tjzbXSd/TLdFMD+XkWmXSl4we2JTf/kqPrbw==","signatures":[{"sig":"MEYCIQCT3MvoYTonC/hUpFpl6VzZuGYkP9Sh2CtHl2wuIYweKAIhAIJoO+51pjMKWvz45WjLD8on5Jsh1ctVqK0cv9kYPFbf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkMFmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhYg/+JUWDNqkJsxZRLqg4WaFCjvgVrAiJqCvb0lQIhgCon7wQjYkp\r\n1bblgv+bUkPlILBb1yqrHrVHtKMn+2lBrfxIuzLZGAlbFFjsIYCALjPFqqCB\r\nwrxq87k67wgsecEYwQ/bWt6odQPtcKKKsI6odY7lMhKjdQaTTw3LxYu6/7F0\r\nH30v7o0UZQOfA0Rq/qdJYAPI/ryXkVko2NZuxscAgpqLju1RcxWOjBsQZr2t\r\n2hy6xGNNIg+ogSksnKP4rcZ9bbZGxPhnpwY44aHtllV7dhKlDwhS96+RVjGr\r\nwlYHiS2uh13b6XioLdCqj3J5Pjkx0dRYIv/roKnjHAbRcaCkr+kB9VLrHK0x\r\nVm/CbpOzG58zS9L7ugHXDbJfHW+WHIOkRWiCRYr7bUX62dhulKgDwvXPRjOc\r\nUe9Z76znAPifrjbhT/BgsUw0jPoXZ9IGYlQ1j5tnoA1neNrNRWsnngbRQxyT\r\nAYyH8stRfVFS0SlHO8X04praeXlyz4xQiUTiLyCAhhBbLZwAk+u3HoGHvSIG\r\n7hC/3jW05DL9Z3MiqZuLBFSI2J8ZULb1W0o3d2Jrw32mK2PW99lr63TqPQAU\r\nJNoWqVjtj8nBRe2DBrepo7asxuWU0scrac/poE+D8L8z7vfjGCyf9u4O9zJU\r\n+wlPYXX9hUdHXYMnFjoknOIvjgp7btVJ2tw=\r\n=Cm2n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"4bb6cec95bfde171ce2ae6bb8bc0828f86b1a519","scripts":{"test":"mocha test -R spec","coverage":"istanbul cover node_modules/.bin/_mocha -- --recursive"},"_npmUser":{"name":"deepgreenai","email":"william@deepgreenai.com"},"repository":{"url":"git+https://github.com/bitpay/bitcoind-rpc.git","type":"git"},"_npmVersion":"8.19.2","description":"Bitcoin Client Library to connect to Bitcoin Core via RPC","directories":{"lib":"lib","test":"test"},"_nodeVersion":"16.18.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^1.10.0","async":"^0.9.0","mocha":"^2.1.0","sinon":"^1.12.2","istanbul":"^0.4.5","coveralls":"^2.11.2"},"_npmOperationalInternal":{"tmp":"tmp/bitcoind-rpc_0.9.0_1670431077868_0.6416697117608612","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-12-07T16:37:57.809Z","modified":"2025-12-21T05:19:11.602Z","0.9.0":"2022-12-07T16:37:58.019Z"},"bugs":{"url":"https://github.com/bitpay/bitcoind-rpc/issues"},"author":{"name":"Stephen Pair","email":"stephen@bitpay.com"},"license":"MIT","homepage":"https://github.com/bitpay/bitcoind-rpc","keywords":["bitcoin","rpc"],"repository":{"url":"git+https://github.com/bitpay/bitcoind-rpc.git","type":"git"},"description":"Bitcoin Client Library to connect to Bitcoin Core via RPC","contributors":[{"name":"Jeff Garzik","email":"jgarzik@bitpay.com"},{"name":"Manuel Araoz","email":"manuelaraoz@gmail.com"},{"name":"Matias Alejo Garcia","email":"ematiu@gmail.com"},{"name":"Braydon Fuller","email":"braydon@bitpay.com"}],"maintainers":[{"email":"william@deepgreenai.com","name":"smartcade"}],"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&style=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","readmeFilename":"README.md"}