Avalanche SDK Client
    Preparing search index...

    Type Alias PeersReturnType

    Return type for the info.peers method.

    type PeersReturnType = {
        numPeers: number;
        peers: { benched: (...)[]; ip: string; lastReceived: string; lastSent: string; nodeID: string; observedUptime: number; publicIP: string; version: string }[];
    }
    Index

    Properties

    Properties

    numPeers: number

    The number of connected peers

    peers: { benched: (...)[]; ip: string; lastReceived: string; lastSent: string; nodeID: string; observedUptime: number; publicIP: string; version: string }[]

    Array of peer information

    Type declaration

    • benched: (...)[]

      Array of chain IDs the peer is benched on

    • ip: string

      The remote IP of the peer

    • lastReceived: string

      Timestamp of last message received from the peer

    • lastSent: string

      Timestamp of last message sent to the peer

    • nodeID: string

      The prefixed Node ID of the peer

    • observedUptime: number

      The node's primary network uptime observed by the peer

    • publicIP: string

      The public IP of the peer

    • version: string

      The version the peer is running