{"name":"bitcore-p2p","version":"8.25.46","keywords":["bitcoin","bitcore"],"license":"MIT","_id":"bitcore-p2p@8.25.46","homepage":"https://github.com/bitpay/bitcore-p2p#readme","bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"dist":{"shasum":"ab1c3144402ff91327b43484801659dfee545a8b","tarball":"http://registry-npm.ywwl.com/bitcore-p2p/download/bitcore-p2p-8.25.46.tgz","fileCount":62,"integrity":"sha512-kaRJ7gYzXrccJTAhMror1Dgejut347ZDvTPtKV5yN2Mx+N/CceUOXDlb5KaLj/4Di8cVM/7X6bRuci0XMyfYsA==","signatures":[{"sig":"MEYCIQC8hCwHhb6PiD/KIVGemE3svEfKNm6ADp2PV3ZQpAhGowIhAM4RAyfnxPAglFMvQmd5GT2EJfu3vgb4s38GtG+cPCSb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":588125,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3UqeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/YA//UQmjT64efLbSicj+lgpF0faBChs9R4v+S/SwwXkf0cqMByjV\r\nuQEFcxhtdKSFK/z9vLxc4/bpRiXTPbYM3Fb/GuhKFsISnHBAqjY+4Y1nxCK5\r\nb9xKS4d4c3P3aC5BVnkpzvpVCKbpVbAf+yjGIoc14rx9zYi+e1hAM/Ew07sq\r\nzMjYo1y1vq2ZAyBwHyAJ2XrigRrokV6iV9eU0sY91t4WczTrUfI3TiaOutOy\r\n8+9DsjcpQJ81C5cT9sMGBxv8RSjjt09YKZwBet44GHB9JcZJVuqbf4aMfVfd\r\nVo+eqj2N54oFPm08Q0l3CQzjkfMvOc7RT8V2nmBtuskyktjnr1xkAsZcIfvj\r\nzvphPNl07NDTIVkpvq85mxz853pmcrjO646+f48zdI15l83V+H+YkRWy1/VZ\r\nlknlRelOaWmzQIc4Z8U3JCrFj0FaoLauox+ufsYZHrmYbj6pL/bRstBxpJii\r\nYVBYgKNNNDlX4BKKNhJM+xO+gKXxpL1m60Uujo6iKJQdFHRAaBSygpjLjnO2\r\nobIZbPYWGs+nGuGb9Ffw4sArYSc/kb12GsHhQggP7Z6dvn3+Y7xpCfB+qD49\r\n7vh5faJn8BOOlK2bdkDrvnywFi8qQZVN+EqPoNdC7+ollbKVZYvBiPuGTR65\r\n9lpIG9+gCx3K9nBUZl7eBFyja7Kj6cbZVk8=\r\n=3sz8\r\n-----END PGP SIGNATURE-----\r\n","size":205419,"noattachment":false,"key":"/bitcore-p2p/-/bitcore-p2p-8.25.46.tgz"},"main":"index.js","gitHead":"17c02f181ba8f96b408951bb511549b0b41b4607","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/3.22.1/node@v12.22.12+x64 (linux)","description":"Interface to the bitcoin P2P network for bitcore","directories":{},"_nodeVersion":"12.22.12","dependencies":{"buffers":"github:bitpay/node-buffers#v0.1.2-bitpay","bitcore-lib":"^8.25.46","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.25.46"},"_npmOperationalInternal":{"tmp":"tmp/bitcore-p2p_8.25.46_1675446942152_0.36121959953834937","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":1675446942385,"maintainers":[{"name":"gasteve","email":"stephen@pairhome.net"},{"name":"nitsujlangston","email":"nitsujlangston@gmail.com"},{"name":"unusualbob","email":"unusualbob@gmail.com"}],"_cnpm_publish_time":1675446942385,"dist-tags":{"beta":"11.5.1","latest":"10.10.7"}}