Class NodeStatusResponse

Hierarchy

Constructors

  • Creates a new NodeStatusResponse object.

    Parameters

    • __namedParameters: { catchpoint?: string; catchpointAcquiredBlocks?: number | bigint; catchpointProcessedAccounts?: number | bigint; catchpointProcessedKvs?: number | bigint; catchpointTotalAccounts?: number | bigint; catchpointTotalBlocks?: number | bigint; catchpointTotalKvs?: number | bigint; catchpointVerifiedAccounts?: number | bigint; catchpointVerifiedKvs?: number | bigint; catchupTime: number | bigint; lastCatchpoint?: string; lastRound: number | bigint; lastVersion: string; nextVersion: string; nextVersionRound: number | bigint; nextVersionSupported: boolean; stoppedAtUnsupportedRound: boolean; timeSinceLastRound: number | bigint; upgradeDelay?: number | bigint; upgradeNextProtocolVoteBefore?: number | bigint; upgradeNoVotes?: number | bigint; upgradeNodeVote?: boolean; upgradeVoteRounds?: number | bigint; upgradeVotes?: number | bigint; upgradeVotesRequired?: number | bigint; upgradeYesVotes?: number | bigint }
      • Optional catchpoint?: string
      • Optional catchpointAcquiredBlocks?: number | bigint
      • Optional catchpointProcessedAccounts?: number | bigint
      • Optional catchpointProcessedKvs?: number | bigint
      • Optional catchpointTotalAccounts?: number | bigint
      • Optional catchpointTotalBlocks?: number | bigint
      • Optional catchpointTotalKvs?: number | bigint
      • Optional catchpointVerifiedAccounts?: number | bigint
      • Optional catchpointVerifiedKvs?: number | bigint
      • catchupTime: number | bigint
      • Optional lastCatchpoint?: string
      • lastRound: number | bigint
      • lastVersion: string
      • nextVersion: string
      • nextVersionRound: number | bigint
      • nextVersionSupported: boolean
      • stoppedAtUnsupportedRound: boolean
      • timeSinceLastRound: number | bigint
      • Optional upgradeDelay?: number | bigint
      • Optional upgradeNextProtocolVoteBefore?: number | bigint
      • Optional upgradeNoVotes?: number | bigint
      • Optional upgradeNodeVote?: boolean
      • Optional upgradeVoteRounds?: number | bigint
      • Optional upgradeVotes?: number | bigint
      • Optional upgradeVotesRequired?: number | bigint
      • Optional upgradeYesVotes?: number | bigint

    Returns NodeStatusResponse

Properties

attribute_map: Record<string, string>
catchpoint?: string

The current catchpoint that is being caught up to

catchpointAcquiredBlocks?: number | bigint

The number of blocks that have already been obtained by the node as part of the catchup

catchpointProcessedAccounts?: number | bigint

The number of accounts from the current catchpoint that have been processed so far as part of the catchup

catchpointProcessedKvs?: number | bigint

The number of key-values (KVs) from the current catchpoint that have been processed so far as part of the catchup

catchpointTotalAccounts?: number | bigint

The total number of accounts included in the current catchpoint

catchpointTotalBlocks?: number | bigint

The total number of blocks that are required to complete the current catchpoint catchup

catchpointTotalKvs?: number | bigint

The total number of key-values (KVs) included in the current catchpoint

catchpointVerifiedAccounts?: number | bigint

The number of accounts from the current catchpoint that have been verified so far as part of the catchup

catchpointVerifiedKvs?: number | bigint

The number of key-values (KVs) from the current catchpoint that have been verified so far as part of the catchup

catchupTime: number | bigint

CatchupTime in nanoseconds

lastCatchpoint?: string

The last catchpoint seen by the node

lastRound: number | bigint

LastRound indicates the last round seen

lastVersion: string

LastVersion indicates the last consensus version supported

nextVersion: string

NextVersion of consensus protocol to use

nextVersionRound: number | bigint

NextVersionRound is the round at which the next consensus version will apply

nextVersionSupported: boolean

NextVersionSupported indicates whether the next consensus version is supported by this node

stoppedAtUnsupportedRound: boolean

StoppedAtUnsupportedRound indicates that the node does not support the new rounds and has stopped making progress

timeSinceLastRound: number | bigint

TimeSinceLastRound in nanoseconds

upgradeDelay?: number | bigint

Upgrade delay

upgradeNextProtocolVoteBefore?: number | bigint

Next protocol round

upgradeNoVotes?: number | bigint

No votes cast for consensus upgrade

upgradeNodeVote?: boolean

This node's upgrade vote

upgradeVoteRounds?: number | bigint

Total voting rounds for current upgrade

upgradeVotes?: number | bigint

Total votes cast for consensus upgrade

upgradeVotesRequired?: number | bigint

Yes votes required for consensus upgrade

upgradeYesVotes?: number | bigint

Yes votes cast for consensus upgrade

Methods

  • Get an object ready for encoding to either JSON or msgpack.

    Parameters

    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc