findPeer abstract method

Future<AddrInfo?> findPeer(
  1. PeerId id, {
  2. RoutingOptions? options,
})

FindPeer searches for a peer with given ID, returns a peer.AddrInfo with relevant addresses.

Implementation

Future<AddrInfo?> findPeer(PeerId id, {RoutingOptions? options});