pub trait HeaderProvider<Block: BlockT>where
    Block::Header: HeaderT,{
    // Required method
    fn get_header<'life0, 'async_trait>(
        &'life0 self,
        hash: Block::Hash
    ) -> Pin<Box<dyn Future<Output = Block::Header> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Abstraction over RPC calling for headers.

Required Methods§

source

fn get_header<'life0, 'async_trait>( &'life0 self, hash: Block::Hash ) -> Pin<Box<dyn Future<Output = Block::Header> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Awaits for the header of the block with hash hash.

Implementors§

source§

impl<Block: BlockT> HeaderProvider<Block> for WsClientwhere Block::Header: DeserializeOwned,