A PeerInfo is a lightweight object that represents a remote peer, it can be obtained from peer discovery mechanisms, HTTP RPC endpoints, etc.

interface PeerInfo {
    id: PeerId;
    multiaddrs: Multiaddr[];
}

Properties

Properties

id: PeerId

The identifier of the remote peer

multiaddrs: Multiaddr[]

The multiaddrs a peer is listening on