pub trait LoadReceipt:
EthApiTypes
+ RpcNodeCoreExt
+ Send
+ Sync{
// Provided method
fn build_transaction_receipt(
&self,
tx: Recovered<<Self::Provider as TransactionsProvider>::Transaction>,
meta: TransactionMeta,
receipt: <Self::Provider as ReceiptProvider>::Receipt,
all_receipts: Option<Arc<Vec<<Self::Provider as ReceiptProvider>::Receipt>>>,
) -> impl Future<Output = Result<<Self::NetworkTypes as RpcTypes>::Receipt, 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.
Provided Methods§
Sourcefn build_transaction_receipt(
&self,
tx: Recovered<<Self::Provider as TransactionsProvider>::Transaction>,
meta: TransactionMeta,
receipt: <Self::Provider as ReceiptProvider>::Receipt,
all_receipts: Option<Arc<Vec<<Self::Provider as ReceiptProvider>::Receipt>>>,
) -> impl Future<Output = Result<<Self::NetworkTypes as RpcTypes>::Receipt, Self::Error>> + Send
fn build_transaction_receipt( &self, tx: Recovered<<Self::Provider as TransactionsProvider>::Transaction>, meta: TransactionMeta, receipt: <Self::Provider as ReceiptProvider>::Receipt, all_receipts: Option<Arc<Vec<<Self::Provider as ReceiptProvider>::Receipt>>>, ) -> impl Future<Output = Result<<Self::NetworkTypes as RpcTypes>::Receipt, Self::Error>> + Send
Helper method for eth_getBlockReceipts and eth_getTransactionReceipt.
If all_receipts is Some, skips the cache lookup for receipts entirely.
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.