interface Peer {
    addresses: PeerAddress[];
    id: PeerId;
    metadata: Record<string, string>;
    protocols: string[];
    tags: Record<string, number>;
}

Properties

addresses: PeerAddress[]

The list of addresses the peer has that we know about

id: PeerId

The identifier of the remote peer

metadata: Record<string, string>

Any peer store metadata the peer has

protocols: string[]

The protocols the peer supports, if known

tags: Record<string, number>

Any peer store tags the peer has