pub type SubstrateBlock = Block<SrcChainConfig, OnlineClient<SrcChainConfig>>;
Expand description
The substrate block type.
Aliased Type§
struct SubstrateBlock { /* private fields */ }
Implementations
§impl<T, C> Block<T, C>where
T: Config,
C: OfflineClientT<T>,
impl<T, C> Block<T, C>where
T: Config,
C: OfflineClientT<T>,
pub fn reference(&self) -> BlockRef<<T as Config>::Hash>
pub fn reference(&self) -> BlockRef<<T as Config>::Hash>
Return a reference to the given block. While this reference is kept alive, the backend will (if possible) endeavour to keep hold of the block.
pub fn hash(&self) -> <T as Config>::Hash
pub fn hash(&self) -> <T as Config>::Hash
Return the block hash.
pub fn number(&self) -> <<T as Config>::Header as Header>::Number
pub fn number(&self) -> <<T as Config>::Header as Header>::Number
Return the block number.
pub fn header(&self) -> &<T as Config>::Header
pub fn header(&self) -> &<T as Config>::Header
Return the entire block header.
§impl<T, C> Block<T, C>where
T: Config,
C: OnlineClientT<T>,
impl<T, C> Block<T, C>where
T: Config,
C: OnlineClientT<T>,
pub async fn events(&self) -> Result<Events<T>, Error>
pub async fn events(&self) -> Result<Events<T>, Error>
Return the events associated with the block, fetching them from the node if necessary.
pub async fn extrinsics(&self) -> Result<Extrinsics<T, C>, Error>
pub async fn extrinsics(&self) -> Result<Extrinsics<T, C>, Error>
Fetch and return the extrinsics in the block body.
pub fn storage(&self) -> Storage<T, C>
pub fn storage(&self) -> Storage<T, C>
Work with storage.
pub async fn runtime_api(&self) -> Result<RuntimeApi<T, C>, Error>
pub async fn runtime_api(&self) -> Result<RuntimeApi<T, C>, Error>
Execute a runtime API call at this block.
pub async fn account_nonce(
&self,
account_id: &<T as Config>::AccountId,
) -> Result<u64, Error>
pub async fn account_nonce( &self, account_id: &<T as Config>::AccountId, ) -> Result<u64, Error>
Get the account nonce for a given account ID at this block.