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

pub trait RemoteBlockchain<Block: BlockT>: Send + Sync {
    pub 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

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

Get block header.

Loading content...

Implementors

Loading content...