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.QueryValidatorsResponseParameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
status | query | string | false | Status to filter out the matched result. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | Validator ⛁ | The response containing all validators. |
400 | Bad Request | The request was malformed or invalid. |
Examples: Python | TypeScript | Rust | API