Trait sp_api::Metadata[][src]

pub trait Metadata<Block: BlockT>: Core<Block> {
    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> { ... } }

The Metadata api trait that returns metadata for the runtime.

Provided methods

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

Returns the metadata of a runtime.

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

Returns the metadata of a runtime.

Loading content...

Trait Implementations

impl<Block: BlockT> RuntimeApiInfo for dyn Metadata<Block>[src]

Implementors

Loading content...