Trait polkadot_service::Chain
source · pub trait Chain<B>where
B: Block,{
fn block_status(
&self,
id: &BlockId<B>
) -> Result<BlockStatus, Box<dyn Error + Send + 'static, Global>>;
}
Expand description
A type which provides access to chain information.
Required Methods§
sourcefn block_status(
&self,
id: &BlockId<B>
) -> Result<BlockStatus, Box<dyn Error + Send + 'static, Global>>
fn block_status(
&self,
id: &BlockId<B>
) -> Result<BlockStatus, Box<dyn Error + Send + 'static, Global>>
Retrieve the status of the block denoted by the given BlockId
.