validator.list
Lists the set of validators.
Usage
import { client } from './viem.config'
const validators = await client.validator.list()
console.log('Validators:', validators)
Validators: [{ publicKey: '0x...', active: true, index: 0n, ... }, ...]import { Account, createClient } from 'viem/tempo'
export const client = createClient({
account: Account.fromSecp256k1('0x...'),
})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.