validator.list
Lists the set of validators.
Usage
import { } from './viem.config'
const = await .validator.list()
.('Validators:', )
Validators: [{ publicKey: '0x...', active: true, index: 0n, ... }, ...]Return Type
type ReturnType = Array<{
/** The validator's communication public key */
publicKey: Hex
/** Whether the validator is active */
active: boolean
/** The validator's index */
index: bigint
/** The validator's address */
validatorAddress: Address
/** The validator's inbound address for incoming connections */
inboundAddress: string
/** The validator's outbound IP address for firewall whitelisting */
outboundAddress: string
}>blockNumber (optional)
- Type:
bigint
Block number to read the state from.
blockOverrides (optional)
- Type:
BlockOverrides
Block overrides to apply to the state.
blockTag (optional)
- Type:
BlockTag
Block tag to read the state from.
stateOverride (optional)
- Type:
StateOverride
State override to apply.