Trait reth_rpc_eth_api::helpers::block::LoadBlock
source · pub trait LoadBlock: LoadPendingBlock + SpawnBlocking {
// Required methods
fn provider(&self) -> impl BlockReaderIdExt;
fn cache(&self) -> &EthStateCache;
// Provided methods
fn block(
&self,
block_id: BlockId,
) -> impl Future<Output = Result<Option<SealedBlock>, Self::Error>> + Send { ... }
fn block_with_senders(
&self,
block_id: BlockId,
) -> impl Future<Output = Result<Option<SealedBlockWithSenders>, Self::Error>> + Send { ... }
}
Expand description
Loads a block from database.
Behaviour shared by several eth_
RPC methods, not exclusive to eth_
blocks RPC methods.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.