A peer that conforms to the Peer Schema.

Note that legacy schemas may be reformatted internally by this module.

If Addrs is empty, a caller may wish to perform a findPeer operation to ascertain the peer's multiaddrs.

If Protocols is empty, a caller may wish to dial the peer and peform a libp2p identify operation to ascertain the peer's supported protocols.

interface PeerRecord {
    Addrs: Multiaddr[];
    ID: PeerId;
    Protocols: string[];
    Schema: "peer";
}

Properties

Addrs: Multiaddr[]
ID: PeerId
Protocols: string[]
Schema: "peer"