Expand description
§alloy-rpc-types
Meta-crate for all Ethereum JSON-RPC types.
Re-exports§
pub use alloy_rpc_types_admin as admin;adminpub use alloy_rpc_types_anvil as anvil;anvilpub use alloy_rpc_types_any as any;anypub use alloy_rpc_types_beacon as beacon;beaconpub use alloy_rpc_types_debug as debug;debugpub use alloy_rpc_types_engine as engine;enginepub use alloy_rpc_types_eth as eth;ethpub use alloy_rpc_types_mev as mev;mevpub use alloy_rpc_types_trace as trace;tracepub use alloy_rpc_types_txpool as txpool;txpool
Modules§
- erc4337
eth - This module provides implementations for ERC-4337.
- error
eth - Commonly used errors for the
eth_namespace. - pubsub
ethandserde - Ethereum types for pub-sub
- simulate
eth - ‘eth_simulateV1’ Request / Response types: https://github.com/ethereum/execution-apis/pull/484
- state
eth - bindings for state overrides in eth_call
- transaction
eth - RPC types for transactions
Structs§
- Access
List eth - AccessList as defined in EIP-2930
- Access
List Item eth - A list of addresses and storage keys that the transaction plans to access. Accesses outside the list are possible, but become more expensive.
- Access
List Result eth AccessListResultfor handling errors frometh_createAccessList- Account
eth - Represents an TrieAccount in the account trie.
- Account
Info eth - Account information.
- AnyReceipt
Envelope eth - Receipt envelope, as defined in EIP-2718.
- Authorization
eth - An unsigned EIP-7702 authorization.
- BadBlock
eth - Bad block representation.
- Blob
Transaction Sidecar eth - This represents a set of blobs, and its corresponding commitments and proofs.
- Blob
Transaction Sidecar Eip7594 eth - This represents a set of blobs, and its corresponding commitments and cell proofs.
- Block
eth - Block representation for RPC.
- Block
Overrides eth - BlockOverrides is a set of header fields to override.
- Block
Transaction Hashes eth - An iterator over the transaction hashes of a block.
- Bloom
Filter eth - Helper type to represent a bloom filter used for matching logs.
- Bundle
eth - Bundle of transactions
- Chain
Status eth - Chain status.
- EIP1186
Account Proof Response ethandserde - Response for EIP-1186 account proof
eth_getProof - EIP1186
Storage Proof ethandserde - Data structure with proof for one single storage-entry
- EthCall
Response eth - CallResponse for eth_callMany
- ExtAccount
Info eth - Extended account information (used by
parity_allAccountInfo). - FeeHistory
eth - Response type for
eth_feeHistory - Fill
Transaction eth - Response type for
eth_fillTransaction. - Filter
eth - Filter for logs.
- Filter
Receipts Iter eth - Iterator that yields logs from receipts that match a filter.
- Filter
Set eth - FilterSet is a set of values that will be used to filter logs.
- Filtered
Params eth - Support for matching Filters
- Header
eth - RPC representation of block header, wrapping a consensus header.
- Index
eth - A hex encoded or decimal index that’s intended to be used as a rust index, hence it’s
deserialized into a
usize. - Log
eth - Ethereum Log emitted by a transaction
- Packed
User Operation eth PackedUserOperationin the spec: Entry Point V0.7- Peer
EthProtocol Info eth - Peer Ethereum protocol information
- Peer
Info eth - Peer connection information
- Peer
Network Info eth - Peer network information
- Peer
Protocols Info eth - Peer protocols information
- Peers
eth - Peers info
- PipProtocol
Info eth - Peer PIP protocol information
- RawLog
eth - Ethereum Log
- Receipt
eth - Receipt containing result of transaction execution.
- Receipt
With Bloom eth Receiptwith calculated bloom filter.- Recovered
Account eth - account derived from a signature as well as information that tells if it is valid for the current chain
- RpcBlock
Hash eth - A block hash which may have a boolean
requireCanonicalfield. - RpcModules
- Represents the
rpc_modulesresponse, which returns the list of all available modules on that transport and their version - Send
User Operation Response eth - Response to sending a user operation.
- Signed
Authorization eth - A signed EIP-7702 authorization.
- Stage
eth - The detail of the sync stages.
- State
Context eth - State context for callMany
- Sync
Info eth - Syncing info
- Transaction
eth - Transaction object used in RPC.
- Transaction
Info eth - Additional fields in the context of a (maybe) pending block that contains this transaction.
- Transaction
Input eth - Helper type that supports both
dataandinputfields that map to transaction input data. - Transaction
Receipt eth - Transaction receipt
- Transaction
Request eth - Represents all transaction requests to/from RPC.
- Transaction
Stats eth - Propagation statistics for pending transaction.
- TxGas
AndReward eth - Internal struct to calculate reward percentiles
- User
Operation eth UserOperationin the spec: Entry Point V0.6- User
Operation GasEstimation eth - Represents the gas estimation for a user operation.
- User
Operation Receipt eth - Represents the receipt of a user operation.
- Withdrawal
eth - Withdrawal represents a validator withdrawal from the consensus layer.
- Withdrawals
eth - Represents a collection of Withdrawals.
- Work
eth - The result of an
eth_getWorkrequest
Enums§
- Block
Error eth - Error that can occur when converting other types to blocks
- BlockId
eth - A Block Identifier. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md
- Block
Number OrTag eth - A block Number (or tag - “latest”, “earliest”, “pending”)
- Block
Transactions eth - Block Transactions depending on the boolean attribute of
eth_getBlockBy*, or if used byeth_getUncle* - Block
Transactions Kind eth - Determines how the
transactionsfield of block should be filled. - Conversion
Error eth - Error variants when converting from crate::Transaction to alloy_consensus::Signed transaction.
- Filter
Block Error eth - Represents errors that can occur when setting block filters in
FilterBlockOption. - Filter
Block Option eth - Represents the target range of blocks for the filter
- Filter
Changes eth - Response of the
eth_getFilterChangesRPC. - Filter
Id eth - Owned equivalent of a
SubscriptionId - Pending
Transaction Filter Kind eth - Specifies the kind of information you wish to receive from the
eth_newPendingTransactionFilterRPC endpoint. - Receipt
Envelope eth - Receipt envelope, as defined in EIP-2718.
- Send
User Operation eth - Send User Operation
- Sync
Status eth - Sync status
- Transaction
Index eth - Represents a transaction index where -1 means all transactions
- Transaction
Input Kind eth - Represents how a
TransactionRequesthandles input/data fields. - Value
OrArray eth - Union type for representing a single value or a vector of values inside a filter.
Traits§
- Transaction
Trait eth - Represents a minimal EVM transaction. Currently, EIP-1559, EIP-4844, and EIP-7702 support dynamic fees. We call these transactions “dynamic fee transactions”. We call non dynamic fee transactions(EIP-155, EIP-2930) “legacy fee transactions”.
Functions§
- calc_
blob_ gasprice eth - Calculates the blob gas price from the header’s excess blob gas field.
- calc_
excess_ blob_ gas eth - Calculates the
excess_blob_gasfrom the parent header’sblob_gas_usedandexcess_blob_gas. - logs_
bloom eth - Calculate receipt logs bloom.
Type Aliases§
- Block
Hash OrNumber eth - A block hash or a block number
- Block
NumHash eth - A block number and a hash
- Fork
Block eth - Block number and hash of the forked block.
- Topic
eth - A single topic