[][src]Trait substrate_client::light::blockchain::RemoteBlockchain

pub trait RemoteBlockchain<Block: BlockT>: Send + Sync {
    fn header(
        &self,
        id: BlockId<Block>
    ) -> ClientResult<LocalOrRemote<Block::Header, RemoteHeaderRequest<Block::Header>>>; }

Futures-based blockchain backend that either resolves blockchain data locally, or fetches required data from remote node.

Required methods

fn header(
    &self,
    id: BlockId<Block>
) -> ClientResult<LocalOrRemote<Block::Header, RemoteHeaderRequest<Block::Header>>>

Get block header.

Loading content...

Implementors

impl<S, Block: BlockT> RemoteBlockchain<Block> for Blockchain<S> where
    S: Storage<Block>, 
[src]

Loading content...