bitcore-p2p-doge
Interface to the bitcoin P2P network for bitcore
Last updated 9 months ago by nitsujlangston .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bitcore-p2p-doge 
SYNC missed versions from official npm registry.

Bitcore P2P DOGE

NPM Package

The peer-to-peer networking protocol for DOGE.

bitcore-p2p-doge adds Dogecoin protocol support for Bitcore.

See the main bitcore repo for more information.

Getting Started

npm install bitcore-p2p-doge

In order to connect to the Dogecoin network, you'll need to know the IP address of at least one node of the network, or use Pool to discover peers using a DNS seed.

var Peer = require('bitcore-p2p-doge').Peer;

var peer = new Peer({host: '127.0.0.1'});

peer.on('ready', function() {
  // peer info
  console.log(peer.version, peer.subversion, peer.bestHeight);
});
peer.on('disconnect', function() {
  console.log('connection closed');
});
peer.connect();

Then, you can get information from other peers by using:

// handle events
peer.on('inv', function(message) {
  // message.inventory[]
});
peer.on('tx', function(message) {
  // message.transaction
});

Take a look at this guide on the usage of the Peer class.

Contributing

See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.

License

Code released under the MIT license.

Copyright 2013-2019 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.

Current Tags

  • 11.5.1                                ...           beta (2 months ago)
  • 10.10.5                                ...           latest (9 months ago)

55 Versions

  • 11.5.1                                ...           2 months ago
  • 11.4.5                                ...           4 months ago
  • 11.4.1                                ...           5 months ago
  • 11.3.7                                ...           6 months ago
  • 11.3.6                                ...           6 months ago
  • 11.3.2                                ...           7 months ago
  • 11.2.0                                ...           9 months ago
  • 10.10.5                                ...           9 months ago
  • 10.10.4                                ...           9 months ago
  • 11.1.4                                ...           9 months ago
  • 11.1.1                                ...           10 months ago
  • 10.9.4                                ...           10 months ago
  • 11.0.1                                ...           10 months ago
  • 11.0.0                                ...           10 months ago
  • 10.9.2                                ...           a year ago
  • 10.9.0                                ...           a year ago
  • 10.8.10                                ...           a year ago
  • 10.8.9                                ...           a year ago
  • 10.8.8                                ...           a year ago
  • 10.8.0                                ...           a year ago
  • 10.7.0                                ...           a year ago
  • 10.5.3                                ...           2 years ago
  • 10.5.2                                ...           2 years ago
  • 10.4.1                                ...           2 years ago
  • 10.0.36                                ...           2 years ago
  • 10.0.32                                ...           2 years ago
  • 10.0.28                                ...           2 years ago
  • 10.0.21                                ...           2 years ago
  • 10.0.17                                ...           2 years ago
  • 10.0.16                                ...           2 years ago
  • 10.0.15                                ...           2 years ago
  • 10.0.13                                ...           2 years ago
  • 10.0.11                                ...           3 years ago
  • 10.0.5                                ...           3 years ago
  • 10.0.3                                ...           3 years ago
  • 10.0.2                                ...           3 years ago
  • 10.0.0                                ...           3 years ago
  • 9.0.0                                ...           3 years ago
  • 8.25.46                                ...           3 years ago
  • 8.25.40                                ...           4 years ago
  • 8.25.38                                ...           4 years ago
  • 8.25.36                                ...           4 years ago
  • 8.25.35                                ...           4 years ago
  • 8.25.34                                ...           4 years ago
  • 8.25.31                                ...           4 years ago
  • 8.25.30                                ...           4 years ago
  • 8.25.28                                ...           4 years ago
  • 8.25.27                                ...           4 years ago
  • 8.25.25                                ...           4 years ago
  • 8.25.10                                ...           5 years ago
  • 8.25.8                                ...           5 years ago
  • 8.25.7                                ...           5 years ago
  • 8.25.4                                ...           5 years ago
  • 8.25.3                                ...           5 years ago
  • 8.25.2                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |