{"_id":"@captemulation/bitcore-p2p","_rev":"3-e5004a650d568d2fee49650aa6acc9df","name":"@captemulation/bitcore-p2p","description":"Interface to the bitcoin P2P network for bitcore","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.1":{"name":"@captemulation/bitcore-p2p","version":"1.1.1","description":"Interface to the bitcoin P2P network for bitcore","author":{"name":"BitPay","email":"dev@bitpay.com"},"main":"index.js","scripts":{"lint":"gulp lint","test":"gulp test:node","coverage":"gulp coverage","build":"gulp"},"contributors":[{"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"}],"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"},"devDependencies":{"bitcore-build":"git://github.com/bitpay/bitcore-build.git","brfs":"^1.2.0","chai":"~1.10.0","gulp":"^3.8.10","sinon":"^1.12.2"},"peerDependencies":{"bitcore-lib":"^0.4"},"license":"MIT","gitHead":"b7a6845a4f4c7940884247113a208fe30fcc0e39","bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"homepage":"https://github.com/bitpay/bitcore-p2p#readme","_id":"@captemulation/bitcore-p2p@1.1.1","_shasum":"8b3adde191e8cc63f45c1b44644c9173184e0f6c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"captemulation","email":"john.holmes.dean@gmail.com"},"dist":{"shasum":"8b3adde191e8cc63f45c1b44644c9173184e0f6c","tarball":"https://registry.npmjs.org/@captemulation/bitcore-p2p/-/bitcore-p2p-1.1.1.tgz","integrity":"sha512-aopcw6ky2rmPPQ+/lfDsgsNs2j4DTEj7YDkpWLSsfl9EQ+f888YntHtA42WgxScKKPtAuVBL0Wce4RP5d7IGYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFwzqFn7TqzwbAAzyOHA5A2yq3TnKrxFUgfeuok24fdAiEA0zKcLnWJdL5ELhGcqGQ8i8wh5OzxVpa0eWw76v4QExY="}]},"maintainers":[{"name":"captemulation","email":"john.holmes.dean@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bitcore-p2p-1.1.1.tgz_1490459677917_0.614088551606983"}}},"readme":"<img src=\"http://bitcore.io/css/images/bitcore-p2p.svg\" alt=\"bitcore payment protocol\" height=\"35\" width=\"102\">\n\nBitcore P2P\n=======\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`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```\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 the [bitcore guide](http://bitcore.io/guide/peer.html) 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-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.\n","maintainers":[{"name":"captemulation","email":"john.holmes.dean@gmail.com"}],"time":{"modified":"2022-06-12T15:40:54.442Z","created":"2017-03-25T16:34:40.038Z","1.1.1":"2017-03-25T16:34:40.038Z"},"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":"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"}],"author":{"name":"BitPay","email":"dev@bitpay.com"},"bugs":{"url":"https://github.com/bitpay/bitcore-p2p/issues"},"license":"MIT","readmeFilename":"README.md"}