Queries for the staking properties of an account.

interface StakingAccountQueries {
    getDelegation: ((validator: CosmosValidatorAddress) => Promise<CosmosDelegationResponse>);
    getDelegations: (() => Promise<CosmosDelegationResponse[]>);
    getRedelegations: (() => Promise<RedelegationResponse[]>);
    getReward: ((validator: CosmosValidatorAddress) => Promise<DenomAmount[]>);
    getRewards: (() => Promise<CosmosRewardsResponse>);
    getUnbondingDelegation: ((validator: CosmosValidatorAddress) => Promise<UnbondingDelegation>);
    getUnbondingDelegations: (() => Promise<UnbondingDelegation[]>);
}

Properties

getDelegation: ((validator: CosmosValidatorAddress) => Promise<CosmosDelegationResponse>)

Type declaration

getDelegations: (() => Promise<CosmosDelegationResponse[]>)

Type declaration

getRedelegations: (() => Promise<RedelegationResponse[]>)
getReward: ((validator: CosmosValidatorAddress) => Promise<DenomAmount[]>)

Get the rewards pending with a specific validator.

Type declaration

getRewards: (() => Promise<CosmosRewardsResponse>)

Get the pending rewards for the account.

Type declaration

getUnbondingDelegation: ((validator: CosmosValidatorAddress) => Promise<UnbondingDelegation>)

Type declaration

    • (validator): Promise<UnbondingDelegation>
    • Parameters

      Returns Promise<UnbondingDelegation>

      the unbonding delegations from the account to a specific validator (or [] if none)

getUnbondingDelegations: (() => Promise<UnbondingDelegation[]>)

Type declaration

    • (): Promise<UnbondingDelegation[]>
    • Returns Promise<UnbondingDelegation[]>

      the unbonding delegations from the account to any validator (or [] if none)