Module reth_node_core::rpc::types
source · Expand description
Re-exported from reth_rpc_types
.
Modules§
- alloy-rpc-types-admin
- alloy-rpc-types-anvil
- alloy-rpc-types-beacon
- Standardized collections across
std
andno_std
environments. - alloy-rpc-types-debug
- alloy-rpc-types-engine
- This module provides implementations for EIP-4337.
- Commonly used errors for the
eth_
namespace. - alloy-rpc-types-mev
- Optimism specific rpc types.
- Ethereum types for pub-sub
- Alloy basic Transaction Request type.
- Alloy serde helpers for primitive types.
- ‘eth_simulateV1’ Request / Response types: https://github.com/ethereum/execution-apis/pull/484
- bindings for state overrides in eth_call
- RPC types for trace endpoints and inspectors.
- RPC types for transactions
- alloy-rpc-types-txpool
Structs§
- AccessList as defined in EIP-2930
- A list of addresses and storage keys that the transaction plans to access. Accesses outside the list are possible, but become more expensive.
AccessListResult
for handling errors frometh_createAccessList
- Represents an Account in the account trie.
- Account information.
- Receipt envelope, as defined in EIP-2718.
- An unsigned EIP-7702 authorization.
- Blob type returned in responses to
engine_getBlobsV1
: https://github.com/ethereum/execution-apis/pull/559 - This represents a set of blobs, and its corresponding commitments and proofs.
- Block representation
- BlockOverrides is a set of header fields to override.
- An iterator over the transaction hashes of a block.
- Helper type to represent a bloom filter used for matching logs.
- Bundle of transactions
- Chain status.
- Response for EIP-1186 account proof
eth_getProof
- Data structure with proof for one single storage-entry
- CallResponse for eth_callMany
- This structure maps on the ExecutionPayload structure of the beacon chain spec.
- This structure maps on the ExecutionPayloadV2 structure of the beacon chain spec.
- This structure maps on the ExecutionPayloadV3 structure of the beacon chain spec.
- Extended account information (used by
parity_allAccountInfo
). - Response type for
eth_feeHistory
- Filter for logs.
- FilterSet is a set of values that will be used to filter logs
- Support for matching Filters
- Block header representation.
- A hex encoded or decimal index that’s intended to be used as a rust index, hence it’s deserialized into a
usize
. - A storage key type that can be serialized to and from a hex string up to 32 bytes. Used for
eth_getStorageAt
andeth_getProof
RPCs. - Ethereum Log emitted by a transaction
- Generic type for capturing additional fields when deserializing structs.
PackedUserOperation
in the spec: Entry Point V0.7- Type that represents the signature parity byte, meant for use in RPC.
- Peer Ethereum protocol information
- Peer connection information
- Peer network information
- Peer protocols information
- Peers info
- Peer PIP protocol information
- Ethereum Log
- Receipt containing result of transaction execution.
Receipt
with calculated bloom filter.- account derived from a signature as well as information that tells if it is valid for the current chain
- A block hash which may have a boolean requireCanonical field.
- Represents the
rpc_modules
response, which returns the list of all available modules on that transport and their version - Response to sending a user operation.
- Container type for all signature fields in RPC
- The detail of the sync stages.
- State context for callMany
- Syncing info
- Transaction object used in RPC
- Additional fields in the context of a block that contains this transaction.
- Helper type that supports both
data
andinput
fields that map to transaction input data. - Transaction receipt
- Represents all transaction requests to/from RPC.
- Propagation statistics for pending transaction.
- Internal struct to calculate reward percentiles
UserOperation
in the spec: Entry Point V0.6- Represents the gas estimation for a user operation.
- Represents the receipt of a user operation.
- An extension to a struct that allows to capture additional fields when deserializing.
- Withdrawal represents a validator withdrawal from the consensus layer.
- The result of an
eth_getWork
request
Enums§
- Error that can occur when converting other types to blocks
- A Block Identifier. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md
- A block Number (or tag - “latest”, “earliest”, “pending”)
- Block Transactions depending on the boolean attribute of
eth_getBlockBy*
, or if used byeth_getUncle*
- Determines how the
transactions
field of block should be filled. - Error variants when converting from crate::Transaction to [alloy_consensus::Signed] transaction.
- An execution payload, which can be either ExecutionPayloadV1, ExecutionPayloadV2, or ExecutionPayloadV3.
- Represents errors that can occur when setting block filters in
FilterBlockOption
. - Represents the target range of blocks for the filter
- Response of the
eth_getFilterChanges
RPC. - Owned equivalent of a
SubscriptionId
- Error that can occur when handling payloads.
- Specifies the kind of information you wish to receive from the
eth_newPendingTransactionFilter
RPC endpoint. - Receipt envelope, as defined in EIP-2718.
- Send User Operation
- Sync status
- Represents a transaction index where -1 means all transactions
- Container type for various Ethereum transaction requests
- Union type for representing a single value or a vector of values inside a filter
Traits§
- ToRpc
Error jsonrpsee-types
A trait to convert an error to an RPC error.
Functions§
- Calculates the blob gas price from the header’s excess blob gas field.
- Calculates the
excess_blob_gas
from the parent header’sblob_gas_used
andexcess_blob_gas
. - Supports parsing the TTD as an
Option<u64>
, orOption<f64>
specifically for the mainnet TTD (5.875e22). - Calculate receipt logs bloom.
- For use with serde’s
deserialize_with
on a sequence that must be deserialized as a single but optional (i.e. possiblynull
) value. - Serialize a B256 as a hex string without the “0x” prefix.
- Serialize a byte vec as a hex string without the “0x” prefix.
Type Aliases§
- A catch-all block type for handling blocks on multiple networks.
- Alias for a catch-all receipt type.
- A block hash or a block number
- A block number and a hash
- Block number and hash of the forked block.
- Alias for a peer identifier
- A single topic