pub trait NominationPoolsApi<Block: BlockT, AccountId, Balance>: Core<Block>where
AccountId: Codec,
Balance: Codec,{
// Provided methods
fn pending_rewards(
&self,
__runtime_api_at_param__: &BlockId<Block>,
member: AccountId
) -> Result<Balance, ApiError> { ... }
fn pending_rewards_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
member: AccountId
) -> Result<Balance, ApiError> { ... }
}
Expand description
Runtime api for accessing information about nomination pools.
Provided Methods§
sourcefn pending_rewards(
&self,
__runtime_api_at_param__: &BlockId<Block>,
member: AccountId
) -> Result<Balance, ApiError>
fn pending_rewards( &self, __runtime_api_at_param__: &BlockId<Block>, member: AccountId ) -> Result<Balance, ApiError>
Returns the pending rewards for the member that the AccountId was given for.
sourcefn pending_rewards_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
member: AccountId
) -> Result<Balance, ApiError>
fn pending_rewards_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, member: AccountId ) -> Result<Balance, ApiError>
Returns the pending rewards for the member that the AccountId was given for.