{"name":"bitcore-p2p","version":"10.0.0","keywords":["bitcoin","bitcore"],"license":"MIT","_id":"bitcore-p2p@10.0.0","homepage":"https://github.com/bitpay/bitcore-p2p#readme","bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"dist":{"shasum":"45dbcf3eb5f42d0e6c325fe4acc87f602416174f","tarball":"http://registry-npm.ywwl.com/bitcore-p2p/download/bitcore-p2p-10.0.0.tgz","fileCount":62,"integrity":"sha512-AXEJlsZEdpZkDpQNK0ZGscGKDUmQZlBf7k2nBsZq3pdpqC1W3ILKnfXd7ROxGTGbuklExfAl4bwtsk+VXp8gsA==","signatures":[{"sig":"MEYCIQDSe9dxBSlsn+iUN98oAA1IiFu4FreIohibl9KX62mNKAIhAOiE9vAbd7x8t2WtLq3e9/hGqgWeIFtgIgcyhgU8quHL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":588122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj99/RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpi4Q/+MueRgjdcFCvvhS2fJyhjj6+Jv1sIAHs6acP7fMo3fXY9h4sb\r\njPoqADfpyD6vNjqAWdt4sqoQx4uMfvHXCoqeawJxY7rxhh96XHe19YnHIE4B\r\nMYW3N9xD9nPJxcJcMFfk/VzWs4EaUGgFQ28BHtbHhN4F9YCB1t8bTV/aq8Ou\r\n6i0WrR04PWXfMZcmnRlaRObt/STgnbf5tLDicwsPpMe1PD2YV+1iQsnqrJQU\r\nywzdxaQcCLT23r7L/WfMtZ975QKoM+Po85v8jjV5AM9IIj5cyrLW4QaEZF1+\r\noTycBsJCAlOU17MYkwSAA2ZiWlG1JETTbTF7VxsXFmL6vFg4Ko8Whq2jkrZg\r\n6jipgV4kpUQUtwLOPyHVPxpSOC4p0ZRwy8/sSj8GemCXzgH3n1eEimUfVfug\r\nPOhwZJ7P6dp25hRmv9xFivV/px7o9ZpBMKXzirLRsr+2RQdxW0qhDi3zIhby\r\nzzq47u2FeMOZ6pgAMhcEj66S07aI5HmcwObvnCKA6xFUlD1So9G1JqsWHnIZ\r\nA4GrhG3GLFvDyo+rCXrS/4lzN/lpWzbsH95oE0ZDOgkDbwIs3K7jS41Dtj2Q\r\nnCr1UpM1oapto6F1UoFwdGksWgIQYgtt35rPVfmjKwoAS1naqzcIwivs4Jps\r\nKtuJjjhz8Ud0B2icm+sHes+ihSV3LTShfIc=\r\n=VCat\r\n-----END PGP SIGNATURE-----\r\n","size":205397,"noattachment":false,"key":"/bitcore-p2p/-/bitcore-p2p-10.0.0.tgz"},"main":"index.js","gitHead":"b3564dff1463378532092b9c600bf5358163226e","scripts":{"pub":"npm run build && npm publish","test":"gulp test","build":"gulp","test:ci":"npm run test","coverage":"gulp coverage"},"_npmUser":{"name":"nitsujlangston","email":"nitsujlangston@gmail.com"},"repository":{"url":"git+https://github.com/bitpay/bitcore-p2p.git","type":"git"},"_npmVersion":"lerna/6.5.1/node@v18.14.2+x64 (linux)","description":"Interface to the bitcoin P2P network for bitcore","directories":{},"_nodeVersion":"18.14.2","dependencies":{"buffers":"github:bitpay/node-buffers#v0.1.2-bitpay","bitcore-lib":"^10.0.0","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":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bitcore-p2p_10.0.0_1677189073194_0.4949228696983943","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":1677189073443,"maintainers":[{"name":"gasteve","email":"stephen@pairhome.net"},{"name":"nitsujlangston","email":"nitsujlangston@gmail.com"},{"name":"unusualbob","email":"unusualbob@gmail.com"}],"_cnpm_publish_time":1677189073443,"dist-tags":{"beta":"11.5.1","latest":"10.10.7"}}