pub trait PortalRuntimeApi<Block: BlockT, AccountId, Balance, Hash>: Core<Block>where
AccountId: Codec,
Balance: Codec,
Hash: Codec,{
// Provided methods
fn fetch_head_height(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
chain_id: ChainId
) -> Result<Option<u128>, ApiError> { ... }
fn fetch_all_active_xtx(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
for_executor: AccountId
) -> Result<Vec<(Hash, Vec<SideEffect<AccountId, Balance>>, Vec<Hash>)>, ApiError> { ... }
}
Expand description
The API to interact with pallet XDNS
Provided Methods§
sourcefn fetch_head_height(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
chain_id: ChainId
) -> Result<Option<u128>, ApiError>
fn fetch_head_height( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, chain_id: ChainId ) -> Result<Option<u128>, ApiError>
Returns the current head height of the given chain