Expand description
§alloy-rpc-types-eth
Types for the eth
Ethereum JSON-RPC namespace.
Re-exports§
pub use erc4337::PackedUserOperation;
pub use erc4337::SendUserOperation;
pub use erc4337::SendUserOperationResponse;
pub use erc4337::UserOperation;
pub use erc4337::UserOperationGasEstimation;
pub use erc4337::UserOperationReceipt;
pub use transaction::*;
Modules§
- This module provides implementations for EIP-4337.
- Commonly used errors for the
eth_
namespace. - pubsub
serde
Ethereum types for pub-sub - ‘eth_simulateV1’ Request / Response types: https://github.com/ethereum/execution-apis/pull/484
- bindings for state overrides in eth_call
- RPC types for transactions
Structs§
- Represents an Account in the account trie.
- Account information.
- 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
- EIP1186
Storage Proof serde
Data structure with proof for one single storage-entry - CallResponse for eth_callMany
- 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
. - Ethereum Log emitted by a transaction
- Peer Ethereum protocol information
- Peer connection information
- Peer network information
- Peer protocols information
- Peers info
- Peer PIP protocol information
- Ethereum Log
- 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.
- The detail of the sync stages.
- State context for callMany
- Syncing info
- Propagation statistics for pending transaction.
- Internal struct to calculate reward percentiles
- 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. - 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
- Specifies the kind of information you wish to receive from the
eth_newPendingTransactionFilter
RPC endpoint. - Sync status
- Represents a transaction index where -1 means all transactions
- Union type for representing a single value or a vector of values inside a filter
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
. - Calculate receipt logs bloom.
Type Aliases§
- AnyNetwork
Block serde
A catch-all block type for handling blocks on multiple networks. - A block hash or a block number
- A block number and a hash
- Block number and hash of the forked block.
- A single topic