Skip to main content

Interface: StakingQueryExtensionMethods

@shareledgerjs/client.staking.StakingQueryExtensionMethods

Methods

delegation

delegation(delegatorAddress, validatorAddress, height?): Promise<undefined | DelegationResponse>

Parameters

NameType
delegatorAddressstring
validatorAddressstring
height?number

Returns

Promise<undefined | DelegationResponse>


delegatorDelegations

delegatorDelegations(delegatorAddress, paginationKey?, height?): Promise<QueryDelegatorDelegationsResponse>

Parameters

NameType
delegatorAddressstring
paginationKey?Uint8Array
height?number

Returns

Promise<QueryDelegatorDelegationsResponse>


delegatorUnbondingDelegations

delegatorUnbondingDelegations(delegatorAddress, paginationKey?, height?): Promise<QueryDelegatorUnbondingDelegationsResponse>

Parameters

NameType
delegatorAddressstring
paginationKey?Uint8Array
height?number

Returns

Promise<QueryDelegatorUnbondingDelegationsResponse>


delegatorValidator

delegatorValidator(delegatorAddress, validatorAddress, height?): Promise<undefined | Validator>

Parameters

NameType
delegatorAddressstring
validatorAddressstring
height?number

Returns

Promise<undefined | Validator>


delegatorValidators

delegatorValidators(delegatorAddress, paginationKey?, height?): Promise<QueryDelegatorValidatorsResponse>

Parameters

NameType
delegatorAddressstring
paginationKey?Uint8Array
height?number

Returns

Promise<QueryDelegatorValidatorsResponse>


historicalInfo

historicalInfo(height): Promise<undefined | HistoricalInfo>

Parameters

NameType
heightnumber

Returns

Promise<undefined | HistoricalInfo>


latestValidatorSet

latestValidatorSet(paginationKey?): Promise<GetLatestValidatorSetResponse>

Parameters

NameType
paginationKey?Uint8Array

Returns

Promise<GetLatestValidatorSetResponse>


params

params(height?): Promise<undefined | Params>

Parameters

NameType
height?number

Returns

Promise<undefined | Params>


pool

pool(height?): Promise<undefined | Pool>

Parameters

NameType
height?number

Returns

Promise<undefined | Pool>


redelegations

redelegations(delegatorAddress, sourceValidatorAddress, destinationValidatorAddress, paginationKey?, height?): Promise<QueryRedelegationsResponse>

Parameters

NameType
delegatorAddressstring
sourceValidatorAddressstring
destinationValidatorAddressstring
paginationKey?Uint8Array
height?number

Returns

Promise<QueryRedelegationsResponse>


unbondingDelegation

unbondingDelegation(delegatorAddress, validatorAddress, height?): Promise<undefined | UnbondingDelegation>

Parameters

NameType
delegatorAddressstring
validatorAddressstring
height?number

Returns

Promise<undefined | UnbondingDelegation>


validator

validator(validatorAddress, height?): Promise<undefined | Validator>

Parameters

NameType
validatorAddressstring
height?number

Returns

Promise<undefined | Validator>


validatorDelegations

validatorDelegations(validatorAddress, paginationKey?, height?): Promise<QueryValidatorDelegationsResponse>

Parameters

NameType
validatorAddressstring
paginationKey?Uint8Array
height?number

Returns

Promise<QueryValidatorDelegationsResponse>


validatorSetByHeight

validatorSetByHeight(height, paginationKey?): Promise<GetValidatorSetByHeightResponse>

Parameters

NameType
heightLong
paginationKey?Uint8Array

Returns

Promise<GetValidatorSetByHeightResponse>


validatorUnbondingDelegations

validatorUnbondingDelegations(validatorAddress, paginationKey?, height?): Promise<QueryValidatorUnbondingDelegationsResponse>

Parameters

NameType
validatorAddressstring
paginationKey?Uint8Array
height?number

Returns

Promise<QueryValidatorUnbondingDelegationsResponse>


validators

validators(status, paginationKey?, height?): Promise<QueryValidatorsResponse>

Parameters

NameType
statusBondStatusString
paginationKey?Uint8Array
height?number

Returns

Promise<QueryValidatorsResponse>