Trait escrow_rpc_runtime_api::EscrowApi
source · pub trait EscrowApi<Block: BlockT, AccountId, BlockNumber, Balance>: Core<Block>where
AccountId: Codec,
BlockNumber: Codec,
Balance: Codec,{
// Provided methods
fn balance_at(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account_id: AccountId,
height: Option<BlockNumber>
) -> Result<BalanceWrapper<Balance>, ApiError> { ... }
fn free_stakable(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account_id: AccountId
) -> Result<BalanceWrapper<Balance>, ApiError> { ... }
fn total_supply(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
height: Option<BlockNumber>
) -> Result<BalanceWrapper<Balance>, ApiError> { ... }
}
Provided Methods§
sourcefn balance_at(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account_id: AccountId,
height: Option<BlockNumber>
) -> Result<BalanceWrapper<Balance>, ApiError>
fn balance_at( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account_id: AccountId, height: Option<BlockNumber> ) -> Result<BalanceWrapper<Balance>, ApiError>
Get a given user’s escrowed balance
sourcefn free_stakable(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account_id: AccountId
) -> Result<BalanceWrapper<Balance>, ApiError>
fn free_stakable( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account_id: AccountId ) -> Result<BalanceWrapper<Balance>, ApiError>
amount of kint/intr that use can lock, taking into consideration the Limits.
sourcefn total_supply(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
height: Option<BlockNumber>
) -> Result<BalanceWrapper<Balance>, ApiError>
fn total_supply( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, height: Option<BlockNumber> ) -> Result<BalanceWrapper<Balance>, ApiError>
Get the total voting supply in the system