Client

CLI

A user can query and interact with the distribution module using the CLI.

Query

The query commands allow users to query distribution state.

simd query distribution --help

commission

The commission command allows users to query validator commission rewards by address.

simd query distribution commission [address] [flags]

Example:

simd query distribution commission cosmosvaloper1..

Example output:

commission:
- amount: "1000000.000000000000000000"
  denom: stake

community-pool

The community-pool command allows users to query all coin balances within the community pool.

simd query distribution community-pool [flags]

Example:

Example output:

params

The params command allows users to query the parameters of the distribution module.

Example:

Example output:

rewards

The rewards command allows users to query delegator rewards. Users can optionally include the validator address to query rewards earned from a specific validator.

Example:

Example output:

slashes

The slashes command allows users to query all slashes for a given block range.

Example:

Example output:

validator-outstanding-rewards

The validator-outstanding-rewards command allows users to query all outstanding (un-withdrawn) rewards for a validator and all their delegations.

Example:

Example output:

Transactions

The tx commands allow users to interact with the distribution module.

fund-community-pool

The fund-community-pool command allows users to send funds to the community pool.

Example:

set-withdraw-addr

The set-withdraw-addr command allows users to set the withdraw address for rewards associated with a delegator address.

Example:

withdraw-all-rewards

The withdraw-all-rewards command allows users to withdraw all rewards for a delegator.

Example:

withdraw-rewards

The withdraw-rewards command allows users to withdraw all rewards from a given delegation address, and optionally withdraw validator commission if the delegation address given is a validator operator and the user proves the --commision flag.

Example:

gRPC

A user can query the distribution module using gRPC endpoints.

Params

The Params endpoint allows users to query parameters of the distribution module.

Example:

Example output:

ValidatorOutstandingRewards

The ValidatorOutstandingRewards endpoint allows users to query rewards of a validator address.

Example:

Example output:

ValidatorCommission

The ValidatorCommission endpoint allows users to query accumulated commission for a validator.

Example:

Example output:

ValidatorSlashes

The ValidatorSlashes endpoint allows users to query slash events of a validator.

Example:

Example output:

DelegationRewards

The DelegationRewards endpoint allows users to query the total rewards accrued by a delegation.

Example:

Example output:

DelegationTotalRewards

The DelegationTotalRewards endpoint allows users to query the total rewards accrued by each validator.

Example:

Example output:

DelegatorValidators

The DelegatorValidators endpoint allows users to query all validators for given delegator.

Example:

Example output:

DelegatorWithdrawAddress

The DelegatorWithdrawAddress endpoint allows users to query the withdraw address of a delegator.

Example:

Example output:

CommunityPool

The CommunityPool endpoint allows users to query the community pool coins.

Example:

Example output:

Last updated