{"_id":"@abcpros/bitcore-p2p-bcha","_rev":"1-a98284df9a4d0738e6186a0188713c82","name":"@abcpros/bitcore-p2p-bcha","dist-tags":{"latest":"8.25.11"},"versions":{"8.25.11":{"name":"@abcpros/bitcore-p2p-bcha","version":"8.25.11","description":"Interface to the bitcoin P2P network for bitcoin-abc","author":{"name":"Viet","email":"vince.tran8x@gmail.com"},"main":"index.js","scripts":{"test":"gulp test","coverage":"gulp coverage","build":"gulp","pub":"npm run build && npm publish"},"contributors":[{"name":"Justin Langston","email":"justin@bitpay.com"},{"name":"Yemel Jardi","email":"yemel@bitpay.com"},{"name":"Braydon Fuller","email":"braydon@bitpay.com"},{"name":"Ryan X. Charles","email":"ryan@bitpay.com"},{"name":"Eric Martindale","email":"eric@bitpay.com"},{"name":"Philip Hutchins","email":"philip@bitpay.com"},{"name":"Manuel Araoz","email":"maraoz@bitpay.com"},{"name":"Esteban Ordano","email":"eordano@gmail.com"},{"name":"Elichai Turkel"},{"name":"Chris Kleeschulte","email":"chrisk@bitpay.com"}],"keywords":["bitcoin","bitcore"],"repository":{"type":"git","url":"git+https://github.com/bitpay/bitcore-p2p.git"},"dependencies":{"@abcpros/bitcore-lib":"^8.25.10","@abcpros/bitcore-lib-cash":"^8.25.10","bloom-filter":"^0.2.0","buffers":"github:bitpay/node-buffers#v0.1.2-bitpay","socks5-client":"^0.3.6"},"devDependencies":{"bitcore-build":"^8.25.10","brfs":"^1.2.0","chai":"~1.10.0","gulp":"^4.0.0","sinon":"^1.12.2"},"license":"MIT","gitHead":"012cc0216a9bc6b195035855bd17149bad41acd1","bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"homepage":"https://github.com/bitpay/bitcore-p2p#readme","_id":"@abcpros/bitcore-p2p-bcha@8.25.11","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-FaBuGTm6gN5FWtgacQMWkfbFsoQkIUrcrxX2EKVZKi0OMvxgBXiWE/zV5NLDGO86OeJThXZ+hY/QQaOXDV+ncQ==","shasum":"73821d79d73a62431f3deddb0f7ddb3b1d70f0a0","tarball":"https://registry.npmjs.org/@abcpros/bitcore-p2p-bcha/-/bitcore-p2p-bcha-8.25.11.tgz","fileCount":68,"unpackedSize":747486,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9O+bCRA9TVsSAnZWagAADdsP/Ajh4SittrM/m3FhwMmu\nrl7FNW4JQrMkgbo0Wzla5MtcDmRzR48+Ey77jb1BC7YW7hR/ObgleFvdDlH4\n0p1S9e8e+p5rnMTKNOYi+2C6L+PuIDLkhW0WI/H/qa1CWINsvPjdAYC/6f9z\n5PEKVUFRfqJh148CgDJulbdy+6wdOS5V/1Q2KUrFCS132ozeJVMqIiYR84Lm\nRQ+8W5ANmswT1dNdkpnZdS6FPVAJiSUbqjTlXjAi+G/D7z3MCeqW/z4Z3BDP\nNr/x3ChVaFZEBbAaqhGkNaNDQf6E14esa1a/gNGpm37ODcKgX3znQwd7/zAM\n+I+utadjl1zXkxl1IT63kXI9m2FnBloK5Hxhj61SA9jhibULc3lmGuo+N/Z6\n4nBQGssWS47CLQxxAiGNWpE7+25KsS3BLX3tVjSGiJVgixtlFuLraLYPm/Gk\nHC0+9GyWZJUdoqKNCsdYdIsJHNh312uAucKqs+yLWKebyZbE4wxOGq8uGBc0\nTEc2kJTe+7eKm7sBkv09UhmymvZtg9Is4RvSzR7AaLSm6dgrv8fyBwt3Jz7I\nsNQMPsdYnlIWT7bVgKIsGrAgtPkeRSNTTe6YOKPmD12JsmXFkZ8NcuJr5czs\nxiDEYyJ9Gf5bEso9sPbif/MOyC2yq1heStDLQ956K3e8MyOU4ZRqgDcIM8aP\ngTZ4\r\n=BH6d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmgEosxYHBKAVnONQH6zOjTuG/odGZ/HwVvGpRXLxQQAIgClOeocJHXqFH0rTW2CWrytGnniQcbqb6nc2/wfpc+Pg="}]},"_npmUser":{"name":"ngocviet","email":"vince.tran8x@gmail.com"},"directories":{},"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcore-p2p-bcha_8.25.11_1626664859670_0.4554085150873124"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-19T03:20:59.254Z","8.25.11":"2021-07-19T03:20:59.880Z","modified":"2022-04-04T10:58:09.053Z"},"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"description":"Interface to the bitcoin P2P network for bitcoin-abc","homepage":"https://github.com/bitpay/bitcore-p2p#readme","keywords":["bitcoin","bitcore"],"repository":{"type":"git","url":"git+https://github.com/bitpay/bitcore-p2p.git"},"contributors":[{"name":"Justin Langston","email":"justin@bitpay.com"},{"name":"Yemel Jardi","email":"yemel@bitpay.com"},{"name":"Braydon Fuller","email":"braydon@bitpay.com"},{"name":"Ryan X. Charles","email":"ryan@bitpay.com"},{"name":"Eric Martindale","email":"eric@bitpay.com"},{"name":"Philip Hutchins","email":"philip@bitpay.com"},{"name":"Manuel Araoz","email":"maraoz@bitpay.com"},{"name":"Esteban Ordano","email":"eordano@gmail.com"},{"name":"Elichai Turkel"},{"name":"Chris Kleeschulte","email":"chrisk@bitpay.com"}],"author":{"name":"Viet","email":"vince.tran8x@gmail.com"},"bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"license":"MIT","readme":"# Bitcore P2P Cash\n\n[![NPM Package](https://img.shields.io/npm/v/bitcore-p2p-cash.svg?style=flat-square)](https://www.npmjs.org/package/bitcore-p2p-cash)\n\n**The peer-to-peer networking protocol for BCH.**\n\n`bitcore-p2p-cash` adds Bitcoin Cash protocol 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-cash\n```\n\nIn order to connect to the Bitcoin Cash 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-cash').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","readmeFilename":"README.md"}