reth::rpc::compat::transaction

Function from_recovered_with_block_context

pub fn from_recovered_with_block_context<T>(
    tx: TransactionSignedEcRecovered,
    tx_info: TransactionInfo,
    resp_builder: &T,
) -> Result<<T as TransactionCompat>::Transaction, <T as TransactionCompat>::Error>
Expand description

Create a new rpc transaction result for a mined transaction, using the given block hash, number, and tx index fields to populate the corresponding fields in the rpc result.

The block hash, number, and tx index fields should be from the original block where the transaction was mined.