eth-libp2p-delegated-peer-routing
v0.0.1
Published
Leverage other peers in the libp2p network to perform Peer Routing calls.
Downloads
2
Readme
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