reth::rpc::api::servers::eth::helpers::block

Trait LoadBlock

pub trait LoadBlock:
    LoadPendingBlock
    + SpawnBlocking
    + RpcNodeCoreExt {
    // Provided method
    fn block_with_senders(
        &self,
        block_id: BlockId,
    ) -> impl Future<Output = Result<Option<Arc<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.

Provided Methods§

fn block_with_senders( &self, block_id: BlockId, ) -> impl Future<Output = Result<Option<Arc<SealedBlockWithSenders>>, Self::Error>> + Send

Returns the block object for the given block id.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Provider, Pool, Network, EvmConfig> LoadBlock for EthApi<Provider, Pool, Network, EvmConfig>
where EthApi<Provider, Pool, Network, EvmConfig>: LoadPendingBlock + SpawnBlocking, Provider: BlockReaderIdExt,