staking validators - Cosmos

Returns all staking validators, optionally filtered by status, paginated.

Endpoint

httpGET /cosmos/staking/v1beta1/validators

Query Parameters

ParameterTypeDescription
statusstringFilter by status, e.g. BOND_STATUS_BONDED
pagination.limitstringMax results per page

Example

bashexport COSMOS_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${COSMOS_REST}cosmos/staking/v1beta1/validators"

Response

json{
    "validators": [
        {
            "operator_address": "cosmosvaloper1xv9tklw7d82sezh9haa573wufgy59vmwnp5s7g",
            "status": "BOND_STATUS_BONDED",
            "tokens": "5000000000000",
            "description": {
                "moniker": "cosmos-validator"
            },
            "commission": {
                "commission_rates": {
                    "rate": "0.050000000000000000"
                }
            }
        }
    ],
    "pagination": {
        "total": "180"
    }
}

Response Fields

FieldTypeDescription
validatorsarrayValidators with operator address, status, bonded tokens, and commission
validators[].operator_addressstringValidator operator address (cosmosvaloper1...)
validators[].tokensstringTotal bonded tokens in uatom

Use Cases

  • Validator list: Build a staking UI
  • Delegation: Rank validators by stake or commission

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, validator, proposal, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect