Trait reth_rpc_eth_api::helpers::receipt::LoadReceipt

source ·
pub trait LoadReceipt:
    EthApiTypes
    + Send
    + Sync {
    // Required method
    fn cache(&self) -> &EthStateCache;

    // Provided method
    fn build_transaction_receipt(
        &self,
        tx: TransactionSigned,
        meta: TransactionMeta,
        receipt: Receipt,
    ) -> impl Future<Output = Result<AnyTransactionReceipt, Self::Error>> + Send { ... }
}
Expand description

Assembles transaction receipt data w.r.t to network.

Behaviour shared by several eth_ RPC methods, not exclusive to eth_ receipts RPC methods.

Required Methods§

source

fn cache(&self) -> &EthStateCache

Returns a handle for reading data from memory.

Data access in default (L1) trait method implementations.

Provided Methods§

source

fn build_transaction_receipt( &self, tx: TransactionSigned, meta: TransactionMeta, receipt: Receipt, ) -> impl Future<Output = Result<AnyTransactionReceipt, Self::Error>> + Send

Helper method for eth_getBlockReceipts and eth_getTransactionReceipt.

Object Safety§

This trait is not object safe.

Implementors§