Trait Metadata

Source
pub trait Metadata<Block: BlockT>: Core<Block> {
    // Provided methods
    fn metadata(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
    ) -> Result<OpaqueMetadata, Self::Error> { ... }
    fn metadata_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
    ) -> Result<OpaqueMetadata, Self::Error> { ... }
}
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, Self::Error>

Returns the metadata of a runtime.

Source

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

Returns the metadata of a runtime.

Trait Implementations§

Source§

impl<Block: BlockT, __Sr_Api_Error__> RuntimeApiInfo for dyn Metadata<Block, Error = __Sr_Api_Error__>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§