pub trait LoadReceipt:
EthApiTypes
+ RpcNodeCoreExt<Provider: TransactionsProvider + ReceiptProvider>
+ Send
+ Sync {
// Required method
fn build_transaction_receipt(
&self,
tx: ProviderTx<Self::Provider>,
meta: TransactionMeta,
receipt: ProviderReceipt<Self::Provider>,
) -> impl Future<Output = Result<RpcReceipt<Self::NetworkTypes>, 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§
Sourcefn build_transaction_receipt(
&self,
tx: ProviderTx<Self::Provider>,
meta: TransactionMeta,
receipt: ProviderReceipt<Self::Provider>,
) -> impl Future<Output = Result<RpcReceipt<Self::NetworkTypes>, Self::Error>> + Send
fn build_transaction_receipt( &self, tx: ProviderTx<Self::Provider>, meta: TransactionMeta, receipt: ProviderReceipt<Self::Provider>, ) -> impl Future<Output = Result<RpcReceipt<Self::NetworkTypes>, Self::Error>> + Send
Helper method for eth_getBlockReceipts
and eth_getTransactionReceipt
.
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.