Available on crate feature
rpc only.Expand description
Re-exported eth types
Modules§
- block
- Block related types for RPC API.
- bundle
Ethbundle implementation and helpers.- cache
- Async caching support for eth RPC
- core
- Implementation of the [
jsonrpsee] generatedEthApiServertrait 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_FilterRPC 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::EthPubSubApiServerimplementation. - logs_
utils - Helper functions for
reth_rpc_eth_api::EthFilterApiServerimplementation. - pending_
block - Helper types for
reth_rpc_eth_api::EthApiServerimplementation. - primitives
- alloy-rpc-types-eth
- pubsub
eth_PubSubRPC handler implementation- receipt
- RPC receipt response builder, extends a layer one receipt with layer two data.
- sim_
bundle EthSim bundle implementation and helpers.- simulate
- Utilities for serving
eth_simulateV1 - transaction
- Helper types for
reth_rpc_eth_api::EthApiServerimplementation. - 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
EthAPI implementation.- EthApi
Builder - A helper to build the
EthApihandler instance. - EthBundle
Ethbundle implementation.- EthConfig
- Additional config values for the eth namespace.
- EthFilter
Ethfilter RPC implementation.- EthFilter
Config - Config for the filter
- EthPub
Sub Ethpubsub RPC implementation.- EthState
Cache - Provides async access to cached eth data
- EthState
Cache Config - Settings for the
EthStateCache. - EthSubscription
IdProvider - An
IdProviderfor 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.
- Fill
Transaction Result - Response type for
eth_fillTransactionRPC method. - 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
pendingtag. - Pending
Block Env - Configured
reth_evm::EvmEnvfor 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_calland adjacent calls. SeeRPC_DEFAULT_GAS_CAP.
Traits§
- EthApi
Server - Server trait implementation for the
EthApiRPC API. - EthApi
Types - Network specific
ethAPI 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
FullNodeComponentsbut without requiring implementation of trait bounds.
Type Aliases§
- EthApi
For - Helper type alias for
EthApiwith components from the givenFullNodeComponents. - EthResult
- Result alias
- State
Cache Db - Helper alias type for the state’s
State