reth_rpc_eth_api::helpers::block

Type Alias BlockAndReceiptsResult

Source
pub type BlockAndReceiptsResult<Eth> = Result<Option<(SealedBlockFor<<<Eth as RpcNodeCore>::Provider as BlockReader>::Block>, Arc<Vec<ProviderReceipt<<Eth as RpcNodeCore>::Provider>>>)>, <Eth as EthApiTypes>::Error>;
Expand description

Result type of the fetched block and its receipts.

Aliased Type§

enum BlockAndReceiptsResult<Eth> {
    Ok(Option<(SealedBlock<<<<Eth as RpcNodeCore>::Provider as BlockReader>::Block as Block>::Header, <<<Eth as RpcNodeCore>::Provider as BlockReader>::Block as Block>::Body>, Arc<Vec<<<Eth as RpcNodeCore>::Provider as ReceiptProvider>::Receipt>>)>),
    Err(<Eth as EthApiTypes>::Error),
}

Variants§

§1.0.0

Ok(Option<(SealedBlock<<<<Eth as RpcNodeCore>::Provider as BlockReader>::Block as Block>::Header, <<<Eth as RpcNodeCore>::Provider as BlockReader>::Block as Block>::Body>, Arc<Vec<<<Eth as RpcNodeCore>::Provider as ReceiptProvider>::Receipt>>)>)

Contains the success value

§1.0.0

Err(<Eth as EthApiTypes>::Error)

Contains the error value

Layout§

Note: Encountered an error during type layout; the type failed to be normalized.