Interface: StakingQueryExtensionMethods
@shareledgerjs/client.staking.StakingQueryExtensionMethods
Methods
delegation
▸ delegation(delegatorAddress
, validatorAddress
, height?
): Promise
<undefined
| DelegationResponse
>
Parameters
Name | Type |
---|---|
delegatorAddress | string |
validatorAddress | string |
height? | number |
Returns
Promise
<undefined
| DelegationResponse
>
delegatorDelegations
▸ delegatorDelegations(delegatorAddress
, paginationKey?
, height?
): Promise
<QueryDelegatorDelegationsResponse
>
Parameters
Name | Type |
---|---|
delegatorAddress | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryDelegatorDelegationsResponse
>
delegatorUnbondingDelegations
▸ delegatorUnbondingDelegations(delegatorAddress
, paginationKey?
, height?
): Promise
<QueryDelegatorUnbondingDelegationsResponse
>
Parameters
Name | Type |
---|---|
delegatorAddress | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryDelegatorUnbondingDelegationsResponse
>
delegatorValidator
▸ delegatorValidator(delegatorAddress
, validatorAddress
, height?
): Promise
<undefined
| Validator
>
Parameters
Name | Type |
---|---|
delegatorAddress | string |
validatorAddress | string |
height? | number |
Returns
Promise
<undefined
| Validator
>
delegatorValidators
▸ delegatorValidators(delegatorAddress
, paginationKey?
, height?
): Promise
<QueryDelegatorValidatorsResponse
>
Parameters
Name | Type |
---|---|
delegatorAddress | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryDelegatorValidatorsResponse
>
historicalInfo
▸ historicalInfo(height
): Promise
<undefined
| HistoricalInfo
>
Parameters
Name | Type |
---|---|
height | number |
Returns
Promise
<undefined
| HistoricalInfo
>
latestValidatorSet
▸ latestValidatorSet(paginationKey?
): Promise
<GetLatestValidatorSetResponse
>
Parameters
Name | Type |
---|---|
paginationKey? | Uint8Array |
Returns
Promise
<GetLatestValidatorSetResponse
>
params
▸ params(height?
): Promise
<undefined
| Params
>
Parameters
Name | Type |
---|---|
height? | number |
Returns
Promise
<undefined
| Params
>
pool
▸ pool(height?
): Promise
<undefined
| Pool
>
Parameters
Name | Type |
---|---|
height? | number |
Returns
Promise
<undefined
| Pool
>
redelegations
▸ redelegations(delegatorAddress
, sourceValidatorAddress
, destinationValidatorAddress
, paginationKey?
, height?
): Promise
<QueryRedelegationsResponse
>
Parameters
Name | Type |
---|---|
delegatorAddress | string |
sourceValidatorAddress | string |
destinationValidatorAddress | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryRedelegationsResponse
>
unbondingDelegation
▸ unbondingDelegation(delegatorAddress
, validatorAddress
, height?
): Promise
<undefined
| UnbondingDelegation
>
Parameters
Name | Type |
---|---|
delegatorAddress | string |
validatorAddress | string |
height? | number |
Returns
Promise
<undefined
| UnbondingDelegation
>
validator
▸ validator(validatorAddress
, height?
): Promise
<undefined
| Validator
>
Parameters
Name | Type |
---|---|
validatorAddress | string |
height? | number |
Returns
Promise
<undefined
| Validator
>
validatorDelegations
▸ validatorDelegations(validatorAddress
, paginationKey?
, height?
): Promise
<QueryValidatorDelegationsResponse
>
Parameters
Name | Type |
---|---|
validatorAddress | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryValidatorDelegationsResponse
>
validatorSetByHeight
▸ validatorSetByHeight(height
, paginationKey?
): Promise
<GetValidatorSetByHeightResponse
>
Parameters
Name | Type |
---|---|
height | Long |
paginationKey? | Uint8Array |
Returns
Promise
<GetValidatorSetByHeightResponse
>
validatorUnbondingDelegations
▸ validatorUnbondingDelegations(validatorAddress
, paginationKey?
, height?
): Promise
<QueryValidatorUnbondingDelegationsResponse
>
Parameters
Name | Type |
---|---|
validatorAddress | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryValidatorUnbondingDelegationsResponse
>
validators
▸ validators(status
, paginationKey?
, height?
): Promise
<QueryValidatorsResponse
>
Parameters
Name | Type |
---|---|
status | BondStatusString |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryValidatorsResponse
>