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§
- EIP-2718 traits.
- alloy-network-primitives
Structs§
- Block header representation with certain fields made optional to account for possible differencies in network implementations.
- Types for a catch-all network.
- Receipt envelope, as defined in EIP-2718.
- Transaction type for a catch-all network.
- Types for a mainnet-like Ethereum network.
- A wallet capable of signing any transaction for the Ethereum network.
- Types for an Op-stack network.
- An unbuilt transaction, along with some error.
- A transaction envelope from an unknown network.
- A typed transaction of an unknown Network
Enums§
- Transaction envelope for a catch-all network.
- Unsigned transaction type for a catch-all network.
- Error type for transaction builders.
Traits§
- Block JSON-RPC response.
- Captures type info for network-specific RPC requests/responses.
- A wallet capable of signing any transaction for the given network.
- Receipt JSON-RPC response.
- A Transaction builder for a network.
- Transaction builder type supporting EIP-4844 transaction fields.
- Transaction builder type supporting EIP-7702 transaction fields.
- Transaction JSON-RPC response. Aggregates transaction data with its block and signer context.
- Asynchronous transaction signer, capable of signing any
SignableTransaction
for the givenSignature
type. - Synchronous transaction signer, capable of signing any
SignableTransaction
for the givenSignature
type.
Type Aliases§
- A catch-all block type for handling blocks on multiple networks.
- A catch-all header type for handling headers on multiple networks.
- A catch-all transaction type for handling transactions on multiple networks.
- Alias for a catch-all receipt type.
- Result type for transaction builders