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