Trait sc_client_api::light::RemoteBlockchain[][src]

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>>>
[src]

Get block header.

Loading content...

Implementors

Loading content...