Available on crate feature
network
only.Expand description
§op-alloy-network
Optimism blockchain RPC behavior abstraction.
This crate contains a simple abstraction of the RPC behavior of an Op-stack blockchain. It is intended to be used by the Alloy client to provide a consistent interface to the rest of the library, regardless of changes the underlying blockchain makes to the RPC interface.
Modules§
- eip2718
- EIP-2718 traits.
- primitives
- alloy-network-primitives
Structs§
- AnyHeader
- Block header representation with certain fields made optional to account for possible differencies in network implementations.
- AnyNetwork
- Types for a catch-all network.
- AnyReceipt
Envelope - Receipt envelope, as defined in EIP-2718.
- AnyTx
Type - Transaction type for a catch-all network.
- Ethereum
- Types for a mainnet-like Ethereum network.
- Ethereum
Wallet - A wallet capable of signing any transaction for the Ethereum network.
- Optimism
- Types for an Op-stack network.
- Unbuilt
Transaction Error - An unbuilt transaction, along with some error.
- Unknown
TxEnvelope - A transaction envelope from an unknown network.
- Unknown
Typed Transaction - A typed transaction of an unknown Network
Enums§
- AnyTx
Envelope - Transaction envelope for a catch-all network.
- AnyTyped
Transaction - Unsigned transaction type for a catch-all network.
- Transaction
Builder Error - Error type for transaction builders.
Traits§
- Block
Response - Block JSON-RPC response.
- Network
- Captures type info for network-specific RPC requests/responses.
- Network
Wallet - A wallet capable of signing any transaction for the given network.
- Receipt
Response - Receipt JSON-RPC response.
- Transaction
Builder - A Transaction builder for a network.
- Transaction
Builder4844 - Transaction builder type supporting EIP-4844 transaction fields.
- Transaction
Builder7702 - Transaction builder type supporting EIP-7702 transaction fields.
- Transaction
Response - Transaction JSON-RPC response. Aggregates transaction data with its block and signer context.
- TxSigner
- Asynchronous transaction signer, capable of signing any
SignableTransaction
for the givenSignature
type. - TxSigner
Sync - Synchronous transaction signer, capable of signing any
SignableTransaction
for the givenSignature
type.
Type Aliases§
- AnyRpc
Block - A catch-all block type for handling blocks on multiple networks.
- AnyRpc
Header - A catch-all header type for handling headers on multiple networks.
- AnyRpc
Transaction - A catch-all transaction type for handling transactions on multiple networks.
- AnyTransaction
Receipt - Alias for a catch-all receipt type.
- Build
Result - Result type for transaction builders