referrerpolicy=no-referrer-when-downgrade

Trait GetParachainInfo

Source
pub trait GetParachainInfo<Block: BlockT>: Core<Block> {
    // Provided method
    fn parachain_id(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<ParaId, ApiError> { ... }
}
Expand description

Runtime api used to access general info about a parachain runtime.

Provided Methods§

Source

fn parachain_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<ParaId, ApiError>

Retrieve the parachain id used for runtime.

Trait Implementations§

Source§

impl<Block: BlockT> RuntimeApiInfo for dyn GetParachainInfo<Block>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§