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§
sourcefn get_events(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Vec<RpcEvent>, ApiError>
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