pub trait CoreApi<Block>: 'static + Send + Syncwhere
    Block: Block,
{ fn version(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<RuntimeVersion, ApiError> { ... } fn version_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<RuntimeVersion, ApiError> { ... } fn execute_block(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        block: Block
    ) -> Result<(), ApiError> { ... } fn execute_block_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        block: Block
    ) -> Result<(), ApiError> { ... } fn initialize_block(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        header: &<Block as Block>::Header
    ) -> Result<(), ApiError> { ... } fn initialize_block_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        header: &<Block as Block>::Header
    ) -> Result<(), ApiError> { ... } }
Expand description

The Core runtime api that every Substrate runtime needs to implement.

Provided Methods§

Returns the version of the runtime.

Returns the version of the runtime.

Execute the given block.

Execute the given block.

Initialize a block with the given header.

Initialize a block with the given header.

Trait Implementations§

The identifier of the runtime api.
The version of the runtime api.

Implementations on Foreign Types§

Implementors§