Trait BlockProducerMetadataApi

Source
pub trait BlockProducerMetadataApi<Block: BlockT, Metadata>: Core<Block>
where Metadata: Decode,
{ // Provided method fn get_metadata_for( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, cross_chain_pub_key: &CrossChainPublicKey, ) -> Result<Option<Metadata>, ApiError> { ... } }

Provided Methods§

Source

fn get_metadata_for( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, cross_chain_pub_key: &CrossChainPublicKey, ) -> Result<Option<Metadata>, ApiError>

Retrieves the metadata for a given SPO public key if it exists.

Trait Implementations§

Source§

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

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§