Trait LoadReceipt
pub trait LoadReceipt:
EthApiTypes
+ Send
+ Sync {
// Required methods
fn cache(&self) -> &EthStateCache;
fn build_transaction_receipt(
&self,
tx: TransactionSigned,
meta: TransactionMeta,
receipt: Receipt,
) -> impl Future<Output = Result<<Self::NetworkTypes as Network>::ReceiptResponse, 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§
fn cache(&self) -> &EthStateCache
fn cache(&self) -> &EthStateCache
Returns a handle for reading data from memory.
Data access in default (L1) trait method implementations.
fn build_transaction_receipt(
&self,
tx: TransactionSigned,
meta: TransactionMeta,
receipt: Receipt,
) -> impl Future<Output = Result<<Self::NetworkTypes as Network>::ReceiptResponse, Self::Error>> + Send
fn build_transaction_receipt( &self, tx: TransactionSigned, meta: TransactionMeta, receipt: Receipt, ) -> impl Future<Output = Result<<Self::NetworkTypes as Network>::ReceiptResponse, Self::Error>> + Send
Helper method for eth_getBlockReceipts
and eth_getTransactionReceipt
.
Object Safety§
This trait is not object safe.