Link Search Menu Expand Document

Staking queries

Create a queryClient

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

// Create client with stakingExtension
const client = QueryClient.withExtensions(tmClient, setupStakingExtension);

Available query methods

Method Description Params
.staking.delegation   (delegatorAddress: string, validatorAddress: string)
.staking.delegatorDelegations   (delegatorAddress: string,paginationKey?: Uint8Array)
.staking.delegatorUnbondingDelegations   (delegatorAddress: string,paginationKey?: Uint8Array)
.staking.delegatorValidator   (delegatorAddress: string,validatorAddress: string)
.staking.delegatorValidators   (delegatorAddress: string,paginationKey?: Uint8Array)
.staking.historicalInfo   (height: number)
.staking.params   none
.staking.pool   none
.staking.redelegations   (delegatorAddress: string,sourceValidatorAddress: string,destinationValidatorAddress: string,paginationKey?: Uint8Array)
.staking.unbondingDelegation   (delegatorAddress: string,validatorAddress: string)
.staking.validator   (validatorAddress: string)
.staking.validatorDelegations   (validatorAddress: string,paginationKey?: Uint8Array)
.staking.validators   (status: BondStatusString, paginationKey?: Uint8Array)
.staking.validatorUnbondingDelegations   (validatorAddress: string,paginationKey?: Uint8Array)

🔗 Back to query overview