{"name":"bitcore-p2p","version":"8.19.0","keywords":["bitcoin","bitcore"],"license":"MIT","_id":"bitcore-p2p@8.19.0","homepage":"https://github.com/bitpay/bitcore-p2p#readme","bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"dist":{"shasum":"90b22fb74ba218823bcc92fe0334860e1e276cbf","tarball":"http://registry-npm.ywwl.com/bitcore-p2p/download/bitcore-p2p-8.19.0.tgz","fileCount":62,"integrity":"sha512-wEeBXiqnoaD0iyl2OczovQfOVZWuDS59pcclf0Z84WQTM+PmNBTy7r2LEGmeRco/Kil1b8s0bbjQuVT5O+uMDg==","signatures":[{"sig":"MEYCIQCBXE1jCIzRcq26tXpcpfLyEBl8tTn8LRtwJXMkK1CeHQIhAIMf32P+F1FzM57E82RSiih1f8Gg9jt4d5wrqJz+WIvP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":586235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemSpqCRA9TVsSAnZWagAAF80P/2V1FAx41Y2AAsi2Av/w\nKNedpUzFN1dB3fijqGSvvE3Bk8ZECnKWMstMfVpR91+QuN6mKKAiQdfElMCL\ngVuT4x9+vBlHvKOh3IhTEYA2RpF15bfTRnohOQ5CPfh6tp7Pd+qA46pFSIZa\ng2YHqw8hjfCwE4MCKgZIecqvcf2VfMlhn9T1qDPocEb1GIvZo9nbX+OLUlnl\n1SG8Rixf0Jhv8umAlXE7Vmd/lh7Q1EKzmECfEd46MhOGZCmSgTe4rCPu49wj\nILQEpI25jkUTnwqW4hOshndzeorNQHlnHykIMjuyUYgpXpKyLMImHQkToyqV\npjWZB0Z0xnaWYZpc4WDgK6EqBa166Df6RhSkvx9C2YPu/71RosUi1PTadUT1\ng6ZCCO6IJvSo5NJuXtyiOiZQg9FtAviIx4w4dG3tOADA0JLpRWH36kUimJJY\nvr3JxU/V58PwAdXYZh8lG2bF4Tnmx1ZuXGhsfbsuKCLl5g3lW3RTUi9l6606\nc1Q1pixZMk18mRLaHJJNuMWFjiBPUzIlIPmTIK128fjoZYwvEOxKksVvaMbW\nWcjnLk/utmIkDHdzAbHgEDXUBrjkE2Q8ApwQabqLHVcLvOjGMuDjxiVI9diC\nn5bJDvrQtmvv74poKcqQpN7ZBqZMh65aZp6Zg6L5VJ7pwqqU4pxQfX/nflgK\n27JG\r\n=jBjV\r\n-----END PGP SIGNATURE-----\r\n","size":205153,"noattachment":false,"key":"/bitcore-p2p/-/bitcore-p2p-8.19.0.tgz"},"main":"index.js","gitHead":"fd63a94973984a10a79e40210631ef51b5c72259","scripts":{"pub":"npm run build && npm publish","test":"gulp test","build":"gulp","test:ci":"npm run test","coverage":"gulp coverage"},"_npmUser":{"name":"ematiu","email":"ematiu@gmail.com"},"repository":{"url":"git+https://github.com/bitpay/bitcore-p2p.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.15.3+x64 (darwin)","description":"Interface to the bitcoin P2P network for bitcore","directories":{},"_nodeVersion":"10.15.3","dependencies":{"buffers":"github:bitpay/node-buffers#v0.1.2-bitpay","bitcore-lib":"^8.17.1","bloom-filter":"^0.2.0","socks5-client":"^0.3.6"},"_hasShrinkwrap":false,"devDependencies":{"brfs":"^1.2.0","chai":"~1.10.0","gulp":"^4.0.0","sinon":"^1.12.2","bitcore-build":"^8.17.1"},"_npmOperationalInternal":{"tmp":"tmp/bitcore-p2p_8.19.0_1587096169740_0.5148595808858554","host":"s3://npm-registry-packages"},"readme":"# Bitcore P2P\n\n[![NPM Package](https://img.shields.io/npm/v/bitcore-p2p.svg?style=flat-square)](https://www.npmjs.org/package/bitcore-p2p)\n[![Build Status](https://img.shields.io/travis/bitpay/bitcore-p2p.svg?branch=master&style=flat-square)](https://travis-ci.org/bitpay/bitcore-p2p)\n[![Coverage Status](https://img.shields.io/coveralls/bitpay/bitcore-p2p.svg?style=flat-square)](https://coveralls.io/r/bitpay/bitcore-p2p?branch=master)\n\n**The peer-to-peer networking protocol for BTC.**\n\n`bitcore-p2p` adds [Bitcoin protocol](https://en.bitcoin.it/wiki/Protocol_documentation) support for Bitcore.\n\nSee [the main bitcore repo](https://github.com/bitpay/bitcore) for more information.\n\n## Getting Started\n\n```sh\nnpm install bitcore-p2p\n```\n\nIn order to connect to the Bitcoin network, you'll need to know the IP address of at least one node of the network, or use [Pool](./docs/pool.md) to discover peers using a DNS seed.\n\n```javascript\nvar Peer = require('bitcore-p2p').Peer;\n\nvar peer = new Peer({host: '127.0.0.1'});\n\npeer.on('ready', function() {\n  // peer info\n  console.log(peer.version, peer.subversion, peer.bestHeight);\n});\npeer.on('disconnect', function() {\n  console.log('connection closed');\n});\npeer.connect();\n```\n\nThen, you can get information from other peers by using:\n\n```javascript\n// handle events\npeer.on('inv', function(message) {\n  // message.inventory[]\n});\npeer.on('tx', function(message) {\n  // message.transaction\n});\n```\n\nTake a look at this [guide](./docs/peer.md) on the usage of the `Peer` class.\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/bitpay/bitcore/blob/master/CONTRIBUTING.md) on the main bitcore repo for information about how to contribute.\n\n## License\n\nCode released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).\n\nCopyright 2013-2019 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.\n","publish_time":1587096169911,"maintainers":[{"name":"gasteve","email":"stephen@pairhome.net"},{"name":"nitsujlangston","email":"nitsujlangston@gmail.com"},{"name":"unusualbob","email":"unusualbob@gmail.com"}],"_cnpm_publish_time":1587096169911,"dist-tags":{"beta":"11.5.1","latest":"10.10.7"}}