Module eth

Module eth 

Source
Available on crate feature rpc only.
Expand description

Re-exported eth types

Modules§

bundle
Eth bundle implementation and helpers.
cache
Async caching support for eth RPC
core
Implementation of the [jsonrpsee] generated EthApiServer trait Handles RPC requests for the eth_ namespace.
error
Implementation specific Errors for the eth_ namespace.
fee_history
Consist of types adjacent to the fee history cache and its configs
filter
eth_ Filter RPC handler implementation
gas_oracle
An implementation of the eth gas price oracle, used for providing gas price estimates based on previous blocks.
helpers
The entire implementation of the namespace is quite large, hence it is divided across several files.
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
pubsub
eth_ PubSub RPC handler implementation
receipt
RPC receipt response builder, extends a layer one receipt with layer two data.
sim_bundle
Eth Sim bundle implementation and helpers.
simulate
Utilities for serving eth_simulateV1
transaction
Helper types for reth_rpc_eth_api::EthApiServer implementation.
tx_forward
Consist of types adjacent to the fee history cache and its configs
utils
Commonly used code snippets

Structs§

DevSigner
Holds developer keys
EthApi
Eth API implementation.
EthApiBuilder
A helper to build the EthApi handler instance.
EthBundle
Eth bundle implementation.
EthConfig
Additional config values for the eth namespace.
EthFilter
Eth filter RPC implementation.
EthFilterConfig
Config for the filter
EthPubSub
Eth pubsub RPC implementation.
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.
ForwardConfig
Configuration for the transaction forwarder.
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.
SyncListener
This future resolves once the node is no longer syncing: NetworkInfo::is_syncing.

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.

Traits§

EthApiServer
Server trait implementation for the EthApi RPC API.
EthApiTypes
Network specific eth API types.
FullEthApiServer
Helper trait, unifies functionality that must be supported to implement all RPC methods for server.
RpcNodeCore
Helper trait that provides the same interface as FullNodeComponents but without requiring implementation of trait bounds.

Type Aliases§

EthApiFor
Helper type alias for EthApi with components from the given FullNodeComponents.
EthResult
Result alias
StateCacheDb
Helper alias type for the state’s CacheDB