Peer

public struct Peer : Decodable

Peer information returned by the server.

  • id

    Peer id.

    Declaration

    Swift

    public var id: String
  • Peer address.

    Declaration

    Swift

    public var address: String
  • Peer address state.

    Declaration

    Swift

    public var addressState: PeerAddressState
  • Peer connection state.

    Declaration

    Swift

    public var connectionState: PeerConnectionState?
  • Node version the peer is running.

    Declaration

    Swift

    public var version: Int?
  • Time offset with the peer (in miliseconds).

    Declaration

    Swift

    public var timeOffset: Int?
  • Hash of the head block of the peer.

    Declaration

    Swift

    public var headHash: String?
  • Latency to the peer.

    Declaration

    Swift

    public var latency: Int?
  • rx

    Received bytes.

    Declaration

    Swift

    public var rx: Int?
  • tx

    Sent bytes.

    Declaration

    Swift

    public var tx: Int?