{"name":"bitcore-p2p","version":"10.1.0","description":"Interface to the bitcoin P2P network for bitcore","main":"index.js","scripts":{"test":"gulp test","test:ci":"npm run test","coverage":"gulp coverage","build":"gulp","pub":"npm run build && npm publish"},"keywords":["bitcoin","bitcore"],"repository":{"type":"git","url":"git+https://github.com/bitpay/bitcore-p2p.git"},"dependencies":{"bitcore-lib":"^10.1.0","bloom-filter":"^0.2.0","buffers":"github:bitpay/node-buffers#v0.1.2-bitpay","socks5-client":"^0.3.6"},"devDependencies":{"bitcore-build":"^10.0.21","brfs":"^1.2.0","chai":"~1.10.0","gulp":"^4.0.0","sinon":"^1.12.2"},"license":"MIT","gitHead":"a96ba89079149d8907e6bb8e2c82c44d911e9a96","bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"homepage":"https://github.com/bitpay/bitcore-p2p#readme","_id":"bitcore-p2p@10.1.0","_nodeVersion":"18.20.3","_npmVersion":"lerna/3.22.1/node@v18.20.3+x64 (linux)","dist":{"integrity":"sha512-wRyONAgAYnZCnFe57AOIoUJBkwXrEIxMEcnAVTf7h9FBa4E0MM7PyuxwTRgKclt7N0tdFCJ+GHp0jG6sjXQjJA==","shasum":"f45fa9046dd1a7db359ff5960a1f3c0a04a22a20","tarball":"http://registry-npm.ywwl.com/bitcore-p2p/download/bitcore-p2p-10.1.0.tgz","fileCount":62,"unpackedSize":588393,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvJySGy9oVMy7Q29+y6LAKuc5eDYYXtGoKdTWcsO3OrAiEAgDr5vTDRYUkvM3/A7yl1TxL+SF5fSEFnSC5PvPFhXGw="}],"size":197719,"noattachment":false,"key":"/bitcore-p2p/-/bitcore-p2p-10.1.0.tgz"},"_npmUser":{"name":"nitsujlangston","email":"nitsujlangston@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcore-p2p_10.1.0_1720276532556_0.1262423430240618"},"_hasShrinkwrap":false,"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":1720276532804,"maintainers":[{"name":"gasteve","email":"stephen@pairhome.net"},{"name":"nitsujlangston","email":"nitsujlangston@gmail.com"},{"name":"unusualbob","email":"unusualbob@gmail.com"}],"_cnpm_publish_time":1720276532804,"dist-tags":{"beta":"11.5.1","latest":"10.10.7"}}