Trait reth::core::rpc::api::servers::eth::EthApiTypes

source ·
pub trait EthApiTypes:
    Send
    + Sync
    + Clone {
    type Error: Into<ErrorObject<'static>> + FromEthApiError + AsEthApiError + FromEvmError + Error + Send + Sync;
    type NetworkTypes: Network<TransactionResponse = WithOtherFields<Transaction>, HeaderResponse = Header, ReceiptResponse = WithOtherFields<TransactionReceipt<AnyReceiptEnvelope<Log>>>>;
}
Expand description

Network specific eth API types.

Required Associated Types§

source

type Error: Into<ErrorObject<'static>> + FromEthApiError + AsEthApiError + FromEvmError + Error + Send + Sync

Extension of EthApiError, with network specific errors.

source

type NetworkTypes: Network<TransactionResponse = WithOtherFields<Transaction>, HeaderResponse = Header, ReceiptResponse = WithOtherFields<TransactionReceipt<AnyReceiptEnvelope<Log>>>>

Blockchain primitive types, specific to network, e.g. block and transaction.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl EthApiTypes for ()

Implementors§

source§

impl<Provider, Pool, Network, EvmConfig> EthApiTypes for EthApi<Provider, Pool, Network, EvmConfig>
where EthApi<Provider, Pool, Network, EvmConfig>: Send + Sync,