pub trait AdditionalRuntimeApi<Block: BlockT>: Core<Block> {
    // Provided method
    fn get_events(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash
    ) -> Result<Vec<RpcEvent>, ApiError> { ... }
}
Expand description

Runtime Version for Additional Frequency Runtime Apis

  • MUST be incremented if anything changes
  • Also update in js/api-augment
  • See: https://paritytech.github.io/polkadot/doc/polkadot_primitives/runtime_api/index.html Runtime API definition for Frequency

Provided Methods§

source

fn get_events( &self, __runtime_api_at_param__: <Block as BlockT>::Hash ) -> Result<Vec<RpcEvent>, ApiError>

Fetch the events of a block An easy to work with structure with minimal SCALE needs

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§