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>

Returns the current head height of the given chain

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>

Trait Implementations§

§

impl<Block, AccountId, Balance, Hash> RuntimeApiInfo for dyn PortalRuntimeApi<Block, AccountId, Balance, Hash>where Block: Block,

§

const ID: [u8; 8] = [212u8, 252u8, 251u8, 105u8, 111u8, 39u8, 47u8, 49u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§