跳至主要內容

[Block] kaia_getNodesByState

Returns the nodes registered in the validator set at the specified block, keyed by node address, optionally filtered by lifecycle state. If the state filter is not set, all nodes are returned. If the block parameter is not set, the latest block is used.

Each entry reports the node's lifecycle state and the metadata that drives its transitions. Valid state values are Registered, CandReady, CandTesting, ValInactive, ValReady, ValActive, ValPaused, and ValExiting.

NOTE:

This method is available only on permissionless networks. Querying a block before the Permissionless hardfork returns an error.

This method reads the node states from the state at the queried block. Non-archive (pruned) nodes only retain recent state, so querying historical blocks requires an archive node; otherwise it fails with a "missing trie node" error.

JSONRPC: kaia_getNodesByState

Request​

Responses​

Object - Map of node address to its lifecycle record.

讓這個頁面變得更好