Distribution

Params queries params of the distribution module.

get
Responses
chevron-right
200

A successful response.

application/json

QueryParamsResponse is the response type for the Query/Params RPC method.

get
/cosmos/distribution/v1beta1/params

DelegatorValidators queries the validators of a delegator.

get
Path parameters
delegator_addressanyRequired

delegator_address defines the delegator address to query for.

Responses
chevron-right
200

A successful response.

application/json

QueryDelegatorValidatorsResponse is the response type for the Query/DelegatorValidators RPC method.

validatorsstring[]Optional

validators defines the validators a delegator is delegating for.

get
/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators

ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator

get
Path parameters
validator_addressanyRequired

validator_address defines the validator address to query for.

Responses
chevron-right
200

A successful response.

application/json

QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method.

operator_addressstringOptional

operator_address defines the validator operator address.

get
/cosmos/distribution/v1beta1/validators/{validator_address}

CommunityPool queries the community pool coins.

get
Responses
chevron-right
200

A successful response.

application/json

QueryCommunityPoolResponse is the response type for the Query/CommunityPool RPC method.

get
/cosmos/distribution/v1beta1/community_pool

DelegationTotalRewards queries the total rewards accrued by each validator.

get
Path parameters
delegator_addressanyRequired

delegator_address defines the delegator address to query for.

Responses
chevron-right
200

A successful response.

application/json

QueryDelegationTotalRewardsResponse is the response type for the Query/DelegationTotalRewards RPC method.

get
/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards

DelegationRewards queries the total rewards accrued by a delegation.

get
Path parameters
delegator_addressanyRequired

delegator_address defines the delegator address to query for.

validator_addressanyRequired

validator_address defines the validator address to query for.

Responses
chevron-right
200

A successful response.

application/json

QueryDelegationRewardsResponse is the response type for the Query/DelegationRewards RPC method.

get
/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}

DelegatorWithdrawAddress queries withdraw address of a delegator.

get
Path parameters
delegator_addressanyRequired

delegator_address defines the delegator address to query for.

Responses
chevron-right
200

A successful response.

application/json

QueryDelegatorWithdrawAddressResponse is the response type for the Query/DelegatorWithdrawAddress RPC method.

withdraw_addressstringOptional

withdraw_address defines the delegator address to query for.

get
/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address

ValidatorCommission queries accumulated commission for a validator.

get
Path parameters
validator_addressanyRequired

validator_address defines the validator address to query for.

Responses
chevron-right
200

A successful response.

application/json
get
/cosmos/distribution/v1beta1/validators/{validator_address}/commission

ValidatorOutstandingRewards queries rewards of a validator address.

get
Path parameters
validator_addressanyRequired

validator_address defines the validator address to query for.

Responses
chevron-right
200

A successful response.

application/json

QueryValidatorOutstandingRewardsResponse is the response type for the Query/ValidatorOutstandingRewards RPC method.

get
/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards

ValidatorSlashes queries slash events of a validator.

get
Path parameters
validator_addressanyRequired

validator_address defines the validator address to query for.

Query parameters
starting_heightanyOptional

starting_height defines the optional starting height to query the slashes.

ending_heightanyOptional

starting_height defines the optional ending height to query the slashes.

pagination.keyanyOptional

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.offsetanyOptional

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.limitanyOptional

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.count_totalanyOptional

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.reverseanyOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
chevron-right
200

A successful response.

application/json

QueryValidatorSlashesResponse is the response type for the Query/ValidatorSlashes RPC method.

get
/cosmos/distribution/v1beta1/validators/{validator_address}/slashes

Last updated