[][src]Trait sc_client::BlockBackend

pub trait BlockBackend<Block> where
    Block: Block
{ fn block_body(
        &self,
        id: &BlockId<Block>
    ) -> Result<Option<Vec<<Block as Block>::Extrinsic>>, Error>;
fn block(
        &self,
        id: &BlockId<Block>
    ) -> Result<Option<SignedBlock<Block>>, Error>;
fn block_status(&self, id: &BlockId<Block>) -> Result<BlockStatus, Error>;
fn justification(
        &self,
        id: &BlockId<Block>
    ) -> Result<Option<Vec<u8>>, Error>; }

Interface for fetching block data.

Required methods

fn block_body(
    &self,
    id: &BlockId<Block>
) -> Result<Option<Vec<<Block as Block>::Extrinsic>>, Error>

Get block body by ID. Returns None if the body is not stored.

fn block(
    &self,
    id: &BlockId<Block>
) -> Result<Option<SignedBlock<Block>>, Error>

Get full block by id.

fn block_status(&self, id: &BlockId<Block>) -> Result<BlockStatus, Error>

Get block status.

fn justification(&self, id: &BlockId<Block>) -> Result<Option<Vec<u8>>, Error>

Get block justification set by id.

Loading content...

Implementors

impl<B, E, Block, RA> BlockBackend<Block> for Client<B, E, Block, RA> where
    B: Backend<Block>,
    E: CallExecutor<Block>,
    Block: BlockT
[src]

Loading content...