Module eth

Source
Available on crate feature rpc only.
Expand description

Re-exported eth types

Modules§

builder
eth namespace API builder types.
cache
Async caching support for eth RPC
error
Implementation specific Errors for the eth_ namespace.
fee_history
Consist of types adjacent to the fee history cache and its configs
gas_oracle
An implementation of the eth gas price oracle, used for providing gas price estimates based on previous blocks.
id_provider
Helper type for reth_rpc_eth_api::EthPubSubApiServer implementation.
logs_utils
Helper functions for reth_rpc_eth_api::EthFilterApiServer implementation.
pending_block
Helper types for reth_rpc_eth_api::EthApiServer implementation.
primitives
alloy-rpc-types-eth
receipt
RPC receipt response builder, extends a layer one receipt with layer two data.
revm_utils
utilities for working with revm
simulate
Utilities for serving eth_simulateV1
transaction
Helper types for reth_rpc_eth_api::EthApiServer implementation.
utils
Commonly used code snippets

Structs§

EthConfig
Additional config values for the eth namespace.
EthFilterConfig
Config for the filter
EthReceiptBuilder
Receipt response builder.
EthStateCache
Provides async access to cached eth data
EthStateCacheConfig
Settings for the EthStateCache.
EthSubscriptionIdProvider
An IdProvider for ethereum subscription ids.
FeeHistoryCache
Contains cached fee history entries for blocks.
FeeHistoryCacheConfig
Settings for the FeeHistoryCache.
FeeHistoryEntry
A cached entry for a block’s fee history.
GasCap
The wrapper type for gas limit
GasPriceOracle
Calculates a gas price depending on recent blocks.
GasPriceOracleConfig
Settings for the GasPriceOracle
GasPriceOracleResult
Stores the last result that the oracle returned
MultiConsumerLruCache
A multi-consumer LRU cache.
PendingBlock
Locally built pending block for pending tag.
PendingBlockEnv
Configured EvmEnv for a pending block.
RevertError
Represents a reverted transaction and its output data.

Enums§

EthApiError
Errors that can occur when interacting with the eth_ namespace
PendingBlockEnvOrigin
The origin for a configured PendingBlockEnv
RpcInvalidTransactionError
An error due to invalid transaction.
SignError
Errors returned from a sign request.
TransactionSource
Represents from where a transaction was fetched.

Constants§

RPC_DEFAULT_GAS_CAP
The default gas limit for eth_call and adjacent calls. See RPC_DEFAULT_GAS_CAP.

Type Aliases§

EthResult
Result alias
StateCacheDb
Helper alias type for the state’s [CacheDB]