0.0.1 • Published 5 years ago

eth-libp2p-delegated-peer-routing v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

eth-libp2p-delegated-peer-routing

Leverage other peers in the network to perform Peer Routing calls.

Example

const DelegatedPeerRouting = require('eth-libp2p-delegated-routing')

// default is to use ipfs.io
const routing = new DelegatedPeerRouing()

routing.findPeer('peerid', (err, peerInfo) => {
  if (err) {
    return console.error(err)
  }

  console.log('found peer details', peerInfo)
})

License

MIT