eth-libp2p-delegated-peer-routing

0.0.1 • Public • Published

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

/eth-libp2p-delegated-peer-routing/

    Package Sidebar

    Install

    npm i eth-libp2p-delegated-peer-routing

    Weekly Downloads

    2

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    10.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • d1ll0n