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§

source

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

source

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>

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§