interface StakingAccountQueries {
    getDelegation: ((validator) => Promise<Delegation>);
    getDelegations: (() => Promise<Delegation[]>);
    getRedelegation: ((srcValidator, dstValidator?) => Promise<Redelegation>);
    getRedelegations: (() => Promise<Redelegation[]>);
    getReward: ((validator) => Promise<DenomAmount[]>);
    getRewards: (() => Promise<DenomAmount[]>);
    getUnbondingDelegation: ((validator) => Promise<UnbondingDelegation>);
    getUnbondingDelegations: (() => Promise<UnbondingDelegation[]>);
}

Properties

getDelegation: ((validator) => Promise<Delegation>)

Type declaration

Returns

the active delegation from the account to a specific validator. Return an empty Delegation if there is no delegation.

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

Type declaration

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

Returns

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

getRedelegation: ((srcValidator, dstValidator?) => Promise<Redelegation>)

Type declaration

getRedelegations: (() => Promise<Redelegation[]>)

Type declaration

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

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

Get the rewards pending with a specific validator.

Type declaration

Returns

the amount of the account's rewards pending from a specific validator

getRewards: (() => Promise<DenomAmount[]>)

Get the pending rewards for the account.

Type declaration

Returns

the amounts of the account's rewards pending from all validators

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

Type declaration

    • (validator): Promise<UnbondingDelegation>
    • Parameters

      Returns Promise<UnbondingDelegation>

Returns

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

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

Type declaration

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

Returns

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