pub trait CapacityRuntimeApi<Block: BlockT, AccountId, Balance, BlockNumber>: Core<Block>where
AccountId: Codec + MaybeDisplay,
Balance: Codec + MaybeDisplay,
BlockNumber: Codec + MaybeDisplay,{
// Provided method
fn list_unclaimed_rewards(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
who: AccountId
) -> Result<Vec<UnclaimedRewardInfo<Balance, BlockNumber>>, ApiError> { ... }
}
Expand description
Runtime Version for Capacity
- MUST be incremented if anything changes
- Also update in js/api-augment
- See: https://paritytech.github.io/polkadot/doc/polkadot_primitives/runtime_api/index.html Runtime APIs for Capacity
Provided Methods§
sourcefn list_unclaimed_rewards(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
who: AccountId
) -> Result<Vec<UnclaimedRewardInfo<Balance, BlockNumber>>, ApiError>
fn list_unclaimed_rewards( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, who: AccountId ) -> Result<Vec<UnclaimedRewardInfo<Balance, BlockNumber>>, ApiError>
Get the list of unclaimed rewards information for each eligible Reward Era.