Trait sp_api::Metadata

source ·
pub trait Metadata<Block: BlockT>: Core<Block> {
    // Provided methods
    fn metadata(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<OpaqueMetadata, ApiError> { ... }
    fn metadata_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<OpaqueMetadata, ApiError> { ... }
}
Expand description

The Metadata api trait that returns metadata for the runtime.

Provided Methods§

source

fn metadata( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<OpaqueMetadata, ApiError>

Returns the metadata of a runtime.

source

fn metadata_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<OpaqueMetadata, ApiError>

Returns the metadata of a runtime.

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§