Crate alloy_rpc_types_eth
source ·Expand description
§alloy-rpc-types-eth
Types for the eth
Ethereum JSON-RPC namespace.
Re-exports§
pub use transaction::*;
Modules§
- account 🔒
- block 🔒Block RPC types.
- call 🔒
- Commonly used errors for the
eth_
namespace. - fee 🔒
- filter 🔒
- index 🔒
- log 🔒
- Ethereum types for pub-sub
- raw_log 🔒Ethereum log object.
- bindings for state overrides in eth_call
- syncing 🔒
- RPC types for transactions
- work 🔒
Structs§
- Account information.
- Block representation
- Block number and hash.
- BlockOverrides is a set of header fields to override.
- An iterator over the transaction hashes of a block.
- 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
- 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
- Value representation with additional info
- A block hash which may have a boolean requireCanonical field. If false, an RPC call should raise if a block matching the hash is not found. If true, an RPC call should additionally raise if the block is not in the canonical chain. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md#specification
- 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
- Either a block hash or a block number
- 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 the target range of blocks for the filter
- Response of the
eth_getFilterChanges
RPC. - Owned equivalent of a
SubscriptionId
- Number of peers connected to.
- Specifies the kind of information you wish to receive from the
eth_newPendingTransactionFilter
RPC endpoint. - Sync status
- 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§
- Block number and hash of the forked block.
- A Block representation that allows to include additional fields
- Header representation with additional info.
- A single topic