Skip to content

Get All Validators

Fetches a list of all validators, optionally filtering them by a specified status. See the definition.

Method Declaration

Python
async def get_all_validators(
    self,
    status: str = "",
) -> staking_query.QueryValidatorsResponse

Parameters

ParameterLocationTypeRequiredDescription
statusquerystringfalseStatus to filter out the matched result.

Response

StatusMeaningSchemaDescription
200OKValidator ⛁The response containing all validators.
400Bad RequestThe request was malformed or invalid.

Examples: Python | TypeScript | Rust | API