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>>>; }
Expand description
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>>>
fn header(
&self,
id: BlockId<Block>
) -> ClientResult<LocalOrRemote<Block::Header, RemoteHeaderRequest<Block::Header>>>
Get block header.