{"name":"bitcoind-rpc","description":"Bitcoin Client Library to connect to Bitcoin Core via RPC","version":"0.8.0","author":{"name":"Stephen Pair","email":"stephen@bitpay.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"}],"keywords":["bitcoin","rpc"],"repository":{"type":"git","url":"git+https://github.com/bitpay/bitcoind-rpc.git"},"license":"MIT","main":"lib/index.js","scripts":{"test":"mocha test -R spec","coverage":"istanbul cover node_modules/.bin/_mocha -- --recursive"},"devDependencies":{"async":"^0.9.0","chai":"^1.10.0","coveralls":"^2.11.2","istanbul":"^0.3.5","mocha":"^2.1.0","sinon":"^1.12.2"},"bugs":{"url":"https://github.com/bitpay/bitcoind-rpc/issues"},"homepage":"https://github.com/bitpay/bitcoind-rpc","gitHead":"3603de16826da2c0f3d72a28be74685713bff618","_id":"bitcoind-rpc@0.8.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.4","_npmUser":{"name":"nitsujlangston","email":"nitsujlangston@gmail.com"},"dist":{"integrity":"sha512-LAz52AjjZN2/yAdT2agDEMfEVJXcJazJm0kisShhcCJQ/NGFeKROkizGho1QHmvv/aN3bndkOM9zycMPeAa06A==","shasum":"cb35ddf04de604d07eb578efdcafd92a1de49c24","tarball":"http://registry-npm.ywwl.com/bitcoind-rpc/download/bitcoind-rpc-0.8.0.tgz","fileCount":7,"unpackedSize":26697,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1G62CRA9TVsSAnZWagAAH7EP/0DPuFGbPcIucTTMete0\naB/5slCi5+31c6gMV7DUjIQdDuL5ECrOH3BqypWrWRCb//CERUHmTLuyNVqC\nkVoRM4sKZrUW5ICEHfLmcgv8qvRVR4leorj3a6OA9HA0eStYuFIserhkzN4X\nFGAVsZySeWFmwAaIJWDiTUtfau0TAg8BskDVqdN9iKH8ZB6hDID8w4ybsTIA\nebc6kPwX4RpWMhw6mAbC1LKdPdrjK8neVzfhDEhV/fj0maWi393bKdYN/jJ+\nIDHdI4qEs9xVflbgiVZritbAHHgCuaokgzs7iQicNMRlbj9y0sSP8FxIZRkz\nJXPPLyzW/SKboInDx9QpVJsuRW21eRL+dkSxmAN57AnGhygzfnpDOG1aH6JM\nJr2RHTim7stMam/cLDn935fIc4xeJT5cjaVJOgGz3XEzPtXgofZQb26kJ+Xa\nz6b96GzQGufyuL9Wfq4KI+EcGPRCGJccQ6IVOez6vHeFZBuITchAM73z0ATk\nWSz7zodz16c1cx+6clpCvJtRaJzTPDU1bnjtPan0mGUM2LG2w1y9OFcYi4xQ\nvf0oopsva27rObivKwmbUQvqZOPgYq2UpEfO7UA6W/F2rbARuMDcAk/Vy3Ux\nl3Zrrzy8vbwGvVn12rC8HPJ3vy02HoAFmF4TBGSI2jMSixrnaB+zU3MpbW20\nnF1M\r\n=aCDM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1+9aW1kUCmAPcZTNNEJcI4P4y2G1/yQCzXKZAV/occwIgGxqilmj0lTW3pTtZTJRULzCCX89PqhUIJWJCYckDZZI="}],"size":6479,"noattachment":false,"key":"/bitcoind-rpc/-/bitcoind-rpc-0.8.0.tgz"},"maintainers":[{"name":"braydonf","email":"courier@braydon.com"},{"name":"gabegattis","email":"gabegattis@gmail.com"},{"name":"gasteve","email":"stephen@pairhome.net"},{"name":"patrickbitpay","email":"patrick@bitpay.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoind-rpc_0.8.0_1557425845539_0.9904447556782412"},"_hasShrinkwrap":false,"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","publish_time":1557425845713,"_cnpm_publish_time":1557425845713,"dist-tags":{"latest":"0.9.1"}}