Trait FetchEvents

Source
pub trait FetchEvents {
    type Hash: Encode + Decode;

    // Required methods
    fn fetch_events_from_block<'life0, 'async_trait>(
        &'life0 self,
        block_hash: Self::Hash,
    ) -> Pin<Box<dyn Future<Output = Result<Events<Self::Hash>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_events_for_extrinsic<'life0, 'async_trait>(
        &'life0 self,
        block_hash: Self::Hash,
        extrinsic_hash: Self::Hash,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<EventDetails<Self::Hash>>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn fetch_events_from_block<'life0, 'async_trait>( &'life0 self, block_hash: Self::Hash, ) -> Pin<Box<dyn Future<Output = Result<Events<Self::Hash>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch all block events from node for the given block hash.

Source

fn fetch_events_for_extrinsic<'life0, 'async_trait>( &'life0 self, block_hash: Self::Hash, extrinsic_hash: Self::Hash, ) -> Pin<Box<dyn Future<Output = Result<Vec<EventDetails<Self::Hash>>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch all associated events for a given extrinsic hash and block hash.

Implementors§

Source§

impl<T, Client> FetchEvents for Api<T, Client>
where T: Config, Client: Request,

Source§

type Hash = <T as Config>::Hash