Validators
Blockchain Integration Data Query Apis Protocol Rest Queries Validators (v1.0.0)
Download OpenAPI specification:Download
API Documentation for Blockchain Integration Data Query Apis Protocol Rest Queries Validators
ValidatorDistributionInfo
ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator
Authorizations:
path Parameters
| validator_address required | string (validator_address) validator_address defines the validator address to query for. |
Responses
Response samples
- 200
{- "operatorAddress": "string",
- "selfBondRewards": [
- {
- "denom": "string",
- "amount": "string"
}
], - "commission": [
- {
- "denom": "string",
- "amount": "string"
}
]
}ValidatorCommission
ValidatorCommission queries accumulated commission for a validator.
Authorizations:
path Parameters
| validator_address required | string (validator_address) validator_address defines the validator address to query for. |
Responses
Response samples
- 200
{- "commission": {
- "commission": [
- {
- "denom": "string",
- "amount": "string"
}
]
}
}ValidatorOutstandingRewards
ValidatorOutstandingRewards queries rewards of a validator address.
Authorizations:
path Parameters
| validator_address required | string (validator_address) validator_address defines the validator address to query for. |
Responses
Response samples
- 200
{- "rewards": {
- "rewards": [
- {
- "denom": "string",
- "amount": "string"
}
]
}
}ValidatorSlashes
ValidatorSlashes queries slash events of a validator.
Authorizations:
path Parameters
| validator_address required | string (validator_address) validator_address defines the validator address to query for. |
query Parameters
| startingHeight | integer or string <int64> (starting_height) starting_height defines the optional starting height to query the slashes. |
| endingHeight | integer or string <int64> (ending_height) starting_height defines the optional ending height to query the slashes. |
| pagination.key | string <byte> (key) key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set. |
| pagination.offset | integer or string <int64> (offset) offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set. |
| pagination.limit | integer or string <int64> (limit) limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. |
| pagination.countTotal | boolean (count_total) count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. |
| pagination.reverse | boolean (reverse) reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Response samples
- 200
{- "slashes": [
- {
- "validatorPeriod": 0,
- "fraction": "string"
}
], - "pagination": {
- "nextKey": "string",
- "total": 0
}
}HistoricalInfo
HistoricalInfo queries the historical info for given height.
Authorizations:
path Parameters
| height required | integer or string <int64> (height) height defines at which height to query the historical info. |
Responses
Response samples
- 200
{- "hist": {
- "header": {
- "version": {
- "block": 0,
- "app": 0
}, - "chainId": "string",
- "height": 0,
- "time": "2023-01-15T01:30:15.01Z",
- "lastBlockId": {
- "hash": "string",
- "partSetHeader": {
- "total": 0,
- "hash": "string"
}
}, - "lastCommitHash": "string",
- "dataHash": "string",
- "validatorsHash": "string",
- "nextValidatorsHash": "string",
- "consensusHash": "string",
- "appHash": "string",
- "lastResultsHash": "string",
- "evidenceHash": "string",
- "proposerAddress": "string"
}, - "valset": [
- {
- "operatorAddress": "string",
- "consensusPubkey": {
- "type": "string",
- "value": "string"
}, - "jailed": true,
- "status": "BOND_STATUS_UNSPECIFIED",
- "tokens": "string",
- "delegatorShares": "string",
- "description": {
- "moniker": "string",
- "identity": "string",
- "website": "string",
- "securityContact": "string",
- "details": "string"
}, - "unbondingHeight": 0,
- "unbondingTime": "2023-01-15T01:30:15.01Z",
- "commission": {
- "commissionRates": {
- "rate": "string",
- "maxRate": "string",
- "maxChangeRate": "string"
}, - "updateTime": "2023-01-15T01:30:15.01Z"
}, - "minSelfDelegation": "string",
- "unbondingOnHoldRefCount": 0,
- "unbondingIds": [
- 0
]
}
]
}
}Validators
Validators queries all validators that match the given status.
When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Authorizations:
query Parameters
| status | string (status) status enables to query for validators matching a given status. |
| pagination.key | string <byte> (key) key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set. |
| pagination.offset | integer or string <int64> (offset) offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set. |
| pagination.limit | integer or string <int64> (limit) limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. |
| pagination.countTotal | boolean (count_total) count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. |
| pagination.reverse | boolean (reverse) reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Response samples
- 200
{- "validators": [
- {
- "operatorAddress": "string",
- "consensusPubkey": {
- "type": "string",
- "value": "string"
}, - "jailed": true,
- "status": "BOND_STATUS_UNSPECIFIED",
- "tokens": "string",
- "delegatorShares": "string",
- "description": {
- "moniker": "string",
- "identity": "string",
- "website": "string",
- "securityContact": "string",
- "details": "string"
}, - "unbondingHeight": 0,
- "unbondingTime": "2023-01-15T01:30:15.01Z",
- "commission": {
- "commissionRates": {
- "rate": "string",
- "maxRate": "string",
- "maxChangeRate": "string"
}, - "updateTime": "2023-01-15T01:30:15.01Z"
}, - "minSelfDelegation": "string",
- "unbondingOnHoldRefCount": 0,
- "unbondingIds": [
- 0
]
}
], - "pagination": {
- "nextKey": "string",
- "total": 0
}
}Validator
Validator queries validator info for given validator address.
Authorizations:
path Parameters
| validator_addr required | string (validator_addr) validator_addr defines the validator address to query for. |
Responses
Response samples
- 200
{- "validator": {
- "operatorAddress": "string",
- "consensusPubkey": {
- "type": "string",
- "value": "string"
}, - "jailed": true,
- "status": "BOND_STATUS_UNSPECIFIED",
- "tokens": "string",
- "delegatorShares": "string",
- "description": {
- "moniker": "string",
- "identity": "string",
- "website": "string",
- "securityContact": "string",
- "details": "string"
}, - "unbondingHeight": 0,
- "unbondingTime": "2023-01-15T01:30:15.01Z",
- "commission": {
- "commissionRates": {
- "rate": "string",
- "maxRate": "string",
- "maxChangeRate": "string"
}, - "updateTime": "2023-01-15T01:30:15.01Z"
}, - "minSelfDelegation": "string",
- "unbondingOnHoldRefCount": 0,
- "unbondingIds": [
- 0
]
}
}GetLatestValidatorSet
GetLatestValidatorSet queries latest validator-set.
Authorizations:
query Parameters
| pagination.key | string <byte> (key) key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set. |
| pagination.offset | integer or string <int64> (offset) offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set. |
| pagination.limit | integer or string <int64> (limit) limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. |
| pagination.countTotal | boolean (count_total) count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. |
| pagination.reverse | boolean (reverse) reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Response samples
- 200
{- "blockHeight": 0,
- "validators": [
- {
- "address": "string",
- "pubKey": {
- "type": "string",
- "value": "string"
}, - "votingPower": 0,
- "proposerPriority": 0
}
], - "pagination": {
- "nextKey": "string",
- "total": 0
}
}GetValidatorSetByHeight
GetValidatorSetByHeight queries validator-set at a given height.
Authorizations:
path Parameters
| height required | integer or string <int64> (height) (proto int64) |
query Parameters
| pagination.key | string <byte> (key) key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set. |
| pagination.offset | integer or string <int64> (offset) offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set. |
| pagination.limit | integer or string <int64> (limit) limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. |
| pagination.countTotal | boolean (count_total) count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. |
| pagination.reverse | boolean (reverse) reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Response samples
- 200
{- "blockHeight": 0,
- "validators": [
- {
- "address": "string",
- "pubKey": {
- "type": "string",
- "value": "string"
}, - "votingPower": 0,
- "proposerPriority": 0
}
], - "pagination": {
- "nextKey": "string",
- "total": 0
}
}