There are two validator fetching queries.
Querying a single validator and querying validators with certain criteria.
Commands Examples
Query by validator address
# CLI
sekaid query customstaking validator --addr=$ACCOUNT_ADDRESS
sekaid query customstaking validator --val-addr=$OPERATOR_ADDRESS
# KM
showValidator "kiravaloperXXX...XXX"
showValidator "kiraXXX...XXX"
Bash
Querying validators with certain criteria
# CLI
sekaid query customstaking validators --moniker="" --addr="" --val-addr="" --moniker="" --status="" --pubkey="" --proposer=""
JavaScript