Link Search Menu Expand Document

Distribution queries

Create a queryClient

// Instantiate tmClient
const tmClient = await Tendermint34Client.connect(rpcUrl);

// Create client with distributionExtension
const client = QueryClient.withExtensions(tmClient, setupDistributionExtension);

Available query methods

Method Description Params
.distribution.communityPool   none
.distribution.delegationRewards   delegatorAddress: string, validatorAddress: string
.distribution.delegationTotalRewards   delegatorAddress: string
.distribution.delegatorValidators   delegatorAddress: string
.distribution.delegatorWithdrawAddress   delegatorAddress: string
.distribution.params   none
.distribution.validatorCommission   validatorAddress: string
.distribution.validatorOutstandingRewards   validatorAddress: string
.distribution.validatorSlashes   validatorAddress: string, startingHeight: number,endingHeight: number, paginationKey?:Uint8Array

🔗 Back to query overview