{"_id":"@bcpros/bitcore-p2p-cash","_rev":"4-02d2060eea8aa007fe83e430707fb345","name":"@bcpros/bitcore-p2p-cash","dist-tags":{"latest":"9.0.9"},"versions":{"9.0.1":{"name":"@bcpros/bitcore-p2p-cash","version":"9.0.1","keywords":["bitcoin","bitcore"],"author":{"name":"BitPay","email":"dev@bitpay.com"},"license":"MIT","_id":"@bcpros/bitcore-p2p-cash@9.0.1","maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"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"}],"homepage":"https://github.com/bitpay/bitcore-p2p#readme","bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"dist":{"shasum":"b00cb8bf4ae477aeb42222116046d38219dc19a5","tarball":"https://registry.npmjs.org/@bcpros/bitcore-p2p-cash/-/bitcore-p2p-cash-9.0.1.tgz","fileCount":64,"integrity":"sha512-PrFSvTouDs1roifneI6wRwYN01ZlPd6BFZGLhDqngeRedCtQq0yI+eQDV55q1oks5Yn6XVAd1jUAloU4VX1RMQ==","signatures":[{"sig":"MEUCIA0/exZ44/u5mwa4OHoFDwM0Cg4H28UUiCOjsfZnA223AiEAskATzZMO4JFrxC8y5Ed32IMO9TKpG1rey1n+4YoOwt8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":591569},"main":"index.js","gitHead":"012cc0216a9bc6b195035855bd17149bad41acd1","scripts":{"pub":"npm run build && npm publish","test":"gulp test","build":"gulp","coverage":"gulp coverage"},"_npmUser":{"name":"ngocviet","email":"vince.tran8x@gmail.com"},"repository":{"url":"git+https://github.com/bitpay/bitcore-p2p.git","type":"git"},"_npmVersion":"10.8.2","description":"Interface to the bitcoin P2P network for bitcore","directories":{},"_nodeVersion":"18.20.5","dependencies":{"buffers":"github:bitpay/node-buffers#v0.1.2-bitpay","bloom-filter":"^0.2.0","socks5-client":"^0.3.6","@bcpros/bitcore-lib":"^9.0.1","@bcpros/bitcore-lib-cash":"^9.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"brfs":"^1.2.0","chai":"~1.10.0","gulp":"^4.0.0","sinon":"^1.12.2","@bcpros/bitcore-build":"^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/bitcore-p2p-cash_9.0.1_1736175852041_0.33220986778305095","host":"s3://npm-registry-packages-npm-production"}},"9.0.7":{"name":"@bcpros/bitcore-p2p-cash","version":"9.0.7","keywords":["bitcoin","bitcore"],"author":"BitPay <dev@bitpay.com>","license":"MIT","_id":"@bcpros/bitcore-p2p-cash@9.0.7","maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"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"}],"dist":{"shasum":"5d557a27fedd05436a7fbceb82e49a15252de40f","tarball":"https://registry.npmjs.org/@bcpros/bitcore-p2p-cash/-/bitcore-p2p-cash-9.0.7.tgz","fileCount":64,"integrity":"sha512-AGyiWSLyUCgH+xVEVucvTvU36I/BAm8tSuNToNh0w+5ZzDgj/USDW795DDT3EddacDeyYdq+uppjmc0JIkxaeg==","signatures":[{"sig":"MEUCIQD3Y3PLTY2pIAEsOo8yoHb78TzbWyq54mS1Ckg9/H+sUgIgCDfL6QpWq/Th5FmcmhEBY1+FynJEDw/EuUFcvEmLA8g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":591569},"main":"index.js","gitHead":"169e28b0b13c25c386faccf38a2fdc4e1275a5db","scripts":{"pub":"npm run build && npm publish","test":"gulp test","build":"gulp","coverage":"gulp coverage"},"_npmUser":{"name":"ngocviet","email":"vince.tran8x@gmail.com"},"repository":{"url":"https://github.com/bitpay/bitcore-p2p.git","type":"git"},"_npmVersion":"lerna/8.1.9/node@v18.20.5+x64 (linux)","description":"Interface to the bitcoin P2P network for bitcore","directories":{},"_nodeVersion":"18.20.5","dependencies":{"buffers":"bitpay/node-buffers#v0.1.2-bitpay","bloom-filter":"^0.2.0","socks5-client":"^0.3.6","@bcpros/bitcore-lib":"^9.0.7","@bcpros/bitcore-lib-cash":"^9.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"brfs":"^1.2.0","chai":"~1.10.0","gulp":"^4.0.0","sinon":"^1.12.2","@bcpros/bitcore-build":"^9.0.7"},"_npmOperationalInternal":{"tmp":"tmp/bitcore-p2p-cash_9.0.7_1738639714045_0.8961434643744184","host":"s3://npm-registry-packages-npm-production"}},"9.0.8":{"name":"@bcpros/bitcore-p2p-cash","version":"9.0.8","keywords":["bitcoin","bitcore"],"author":{"name":"BitPay","email":"dev@bitpay.com"},"license":"MIT","_id":"@bcpros/bitcore-p2p-cash@9.0.8","maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"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"}],"homepage":"https://github.com/bitpay/bitcore-p2p#readme","bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"dist":{"shasum":"d85ddc1ff6b08fa950e1845a7fbdaeab5061de4b","tarball":"https://registry.npmjs.org/@bcpros/bitcore-p2p-cash/-/bitcore-p2p-cash-9.0.8.tgz","fileCount":65,"integrity":"sha512-rKog4esfnaRRlqkqSp8rkOFrx74PK1vtz45jqdJ6ntWFSVZqUfa/ILIgy3wXyPU+diip34XyBEm5izk7bakbag==","signatures":[{"sig":"MEQCIAJlkoUEpyUF2AhKJjT1PyCesDqPk+w4q//Wl+gEfQiDAiAjekqGFtCo7ZSATKgDQX+59WPlU2XPLZ422knpGh5HSw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":604279},"main":"index.js","_from":"file:bcpros-bitcore-p2p-cash-9.0.8.tgz","gitHead":"169e28b0b13c25c386faccf38a2fdc4e1275a5db","scripts":{"pub":"npm run build && npm publish","test":"gulp test","build":"gulp","coverage":"gulp coverage"},"_npmUser":{"name":"ngocviet","email":"vince.tran8x@gmail.com"},"_resolved":"/tmp/fcc9fe29c5a7b1403449b96b8b03d5f3/bcpros-bitcore-p2p-cash-9.0.8.tgz","_integrity":"sha512-rKog4esfnaRRlqkqSp8rkOFrx74PK1vtz45jqdJ6ntWFSVZqUfa/ILIgy3wXyPU+diip34XyBEm5izk7bakbag==","repository":{"url":"git+https://github.com/bitpay/bitcore-p2p.git","type":"git"},"_npmVersion":"9.6.6","description":"Interface to the bitcoin P2P network for bitcore","directories":{},"_nodeVersion":"20.2.0","dependencies":{"buffers":"github:bitpay/node-buffers#v0.1.2-bitpay","bloom-filter":"^0.2.0","socks5-client":"^0.3.6","@bcpros/bitcore-lib":"9.0.8","@bcpros/bitcore-lib-cash":"9.0.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"brfs":"^1.2.0","chai":"~1.10.0","gulp":"^4.0.0","sinon":"^1.12.2","@bcpros/bitcore-build":"9.0.8"},"_npmOperationalInternal":{"tmp":"tmp/bitcore-p2p-cash_9.0.8_1742180922933_0.9720176734375201","host":"s3://npm-registry-packages-npm-production"}},"9.0.9":{"name":"@bcpros/bitcore-p2p-cash","version":"9.0.9","description":"Interface to the bitcoin P2P network for bitcore","author":{"name":"BitPay","email":"dev@bitpay.com"},"main":"index.js","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":{"bloom-filter":"^0.2.0","buffers":"github:bitpay/node-buffers#v0.1.2-bitpay","socks5-client":"^0.3.6","@bcpros/bitcore-lib":"9.0.9","@bcpros/bitcore-lib-cash":"9.0.9"},"devDependencies":{"brfs":"^1.2.0","chai":"~1.10.0","gulp":"^4.0.0","sinon":"^1.12.2","@bcpros/bitcore-build":"9.0.9"},"publishConfig":{"access":"public"},"license":"MIT","gitHead":"169e28b0b13c25c386faccf38a2fdc4e1275a5db","scripts":{"test":"gulp test","coverage":"gulp coverage","build":"gulp","pub":"npm run build && npm publish"},"_id":"@bcpros/bitcore-p2p-cash@9.0.9","bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"homepage":"https://github.com/bitpay/bitcore-p2p#readme","_integrity":"sha512-WO+VRKiL96RQ0O2eca4l9+csniqGCNmJ+KP6ql7xLh6rJYGrJx8Dpfp751ySNvqEykmjWL3bSTcvMG8BHZndDQ==","_resolved":"/tmp/ca2ed8d33a63757c4b2e50c5e7c72f6a/bcpros-bitcore-p2p-cash-9.0.9.tgz","_from":"file:bcpros-bitcore-p2p-cash-9.0.9.tgz","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-WO+VRKiL96RQ0O2eca4l9+csniqGCNmJ+KP6ql7xLh6rJYGrJx8Dpfp751ySNvqEykmjWL3bSTcvMG8BHZndDQ==","shasum":"4f5e3ca3faf9123f804ae7fcab5107169efb877e","tarball":"https://registry.npmjs.org/@bcpros/bitcore-p2p-cash/-/bitcore-p2p-cash-9.0.9.tgz","fileCount":65,"unpackedSize":604421,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCLI18TVLQNro4E0fKv9mzAENQ/ihVvMe5/VW4+g1bgNwIhAPP5r/efuq3nusrkYtoIVfO4f0ba/2WfWrKbCxyOTYzs"}]},"_npmUser":{"name":"ngocviet","email":"vince.tran8x@gmail.com"},"directories":{},"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bitcore-p2p-cash_9.0.9_1746374625577_0.5547764315812374"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-06T15:04:11.963Z","modified":"2025-05-04T16:03:46.039Z","9.0.1":"2025-01-06T15:04:12.402Z","9.0.7":"2025-02-04T03:28:34.244Z","9.0.8":"2025-03-17T03:08:43.145Z","9.0.9":"2025-05-04T16:03:45.829Z"},"bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"author":{"name":"BitPay","email":"dev@bitpay.com"},"license":"MIT","homepage":"https://github.com/bitpay/bitcore-p2p#readme","keywords":["bitcoin","bitcore"],"repository":{"type":"git","url":"git+https://github.com/bitpay/bitcore-p2p.git"},"description":"Interface to the bitcoin P2P network for bitcore","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"}],"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"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"}