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
] generatedEthApiServer
trait Handles RPC requests for theeth_
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.- EthApi
Builder - 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.- EthFilter
Config - Config for the filter
- EthPub
Sub Eth
pubsub RPC implementation.- EthState
Cache - Provides async access to cached eth data
- EthState
Cache Config - Settings for the
EthStateCache
. - EthSubscription
IdProvider - An
IdProvider
for ethereum subscription ids. - FeeHistory
Cache - Contains cached fee history entries for blocks.
- FeeHistory
Cache Config - Settings for the
FeeHistoryCache
. - FeeHistory
Entry - A cached entry for a block’s fee history.
- Forward
Config - Configuration for the transaction forwarder.
- GasCap
- The wrapper type for gas limit
- GasPrice
Oracle - Calculates a gas price depending on recent blocks.
- GasPrice
Oracle Config - Settings for the
GasPriceOracle
- GasPrice
Oracle Result - Stores the last result that the oracle returned
- Multi
Consumer LruCache - A multi-consumer LRU cache.
- Pending
Block - Locally built pending block for
pending
tag. - Pending
Block Env - Configured
EvmEnv
for a pending block. - Revert
Error - Represents a reverted transaction and its output data.
- Sync
Listener - This future resolves once the node is no longer syncing:
NetworkInfo::is_syncing
.
Enums§
- EthApi
Error - Errors that can occur when interacting with the
eth_
namespace - Pending
Block EnvOrigin - The origin for a configured
PendingBlockEnv
- RpcInvalid
Transaction Error - An error due to invalid transaction.
- Sign
Error - Errors returned from a sign request.
- Transaction
Source - Represents from where a transaction was fetched.
Constants§
- RPC_
DEFAULT_ GAS_ CAP - The default gas limit for
eth_call
and adjacent calls. SeeRPC_DEFAULT_GAS_CAP
.
Traits§
- EthApi
Server - Server trait implementation for the
EthApi
RPC API. - EthApi
Types - Network specific
eth
API types. - Full
EthApi Server - Helper trait, unifies functionality that must be supported to implement all RPC methods for server.
- RpcNode
Core - Helper trait that provides the same interface as
FullNodeComponents
but without requiring implementation of trait bounds.
Type Aliases§
- EthApi
For - Helper type alias for
EthApi
with components from the givenFullNodeComponents
. - EthResult
- Result alias
- State
Cache Db - Helper alias type for the state’s
CacheDB