SeismicReth
Production network type for Seismic devnet, testnet, and mainnet
SeismicReth is the network type for connecting to production Seismic nodes built on reth. Use it for devnet, testnet, and mainnet deployments.
Overview
SeismicReth implements both Alloy's Network trait and the SeismicNetwork trait. It bundles together the Seismic-specific transaction types, receipt types, and signing logic needed to interact with a reth-based Seismic node.
This is the network type you will use most often. The only exception is local development with Sanvil, which requires SeismicFoundry.
Definition
#[derive(Clone, Copy, Debug)]
pub struct SeismicReth {
_private: (),
}SeismicReth is a zero-sized type (ZST) used purely as a type parameter. It carries no runtime data.
Associated Types
The Network implementation for SeismicReth defines the following associated types:
TxType
SeismicTxType
Transaction type enum (includes 0x4A Seismic type)
TxEnvelope
SeismicTxEnvelope
Signed transaction container
UnsignedTx
SeismicTypedTransaction
Unsigned transaction before signing
ReceiptEnvelope
SeismicReceiptEnvelope
Transaction receipt container
Header
alloy_consensus::Header
Standard block header
TransactionRequest
SeismicTransactionRequest
Builder for transaction parameters
TransactionResponse
Transaction<SeismicTxEnvelope>
RPC response for transaction queries
ReceiptResponse
SeismicTransactionReceipt
RPC response for receipt queries
HeaderResponse
Header
RPC response for header queries
BlockResponse
Block<TransactionResponse, HeaderResponse>
RPC response for block queries
Usage
With SeismicProviderBuilder (Signed)
The most common way to use SeismicReth is via SeismicProviderBuilder. Since SeismicReth is the default network type, you do not need to specify it explicitly:
Unsigned Provider (Read-Only)
For read-only access without a private key:
SeismicProviderBuilder
SeismicProviderBuilder provides a fluent API for constructing providers. It defaults to SeismicReth as the network type.
.wallet(wallet)
Set the wallet for signing transactions
.connect_http(url)
Connect to an HTTP RPC endpoint and build provider
Signed Provider
.wallet(wallet)
Yes
Wallet containing signers
.connect_http(url)
Yes
RPC endpoint URL
Returns: A fully configured signed provider with the filler pipeline set up.
Unsigned Provider
.connect_http(url)
Yes
RPC endpoint URL
Returns: A read-only unsigned provider with no wallet or encryption.
When to Use SeismicReth
Connecting to Seismic testnet
Yes
Connecting to Seismic devnet
Yes
Connecting to Seismic mainnet
Yes
Local testing with Sanvil
No — use SeismicFoundry
Notes
SeismicRethis a zero-sized type and adds no runtime overheadIt is
Clone,Copy, andDebugThe
_private: ()field prevents external construction (use it only as a type parameter)All Seismic-specific transaction types (
SeismicTxType,SeismicTxEnvelope, etc.) are defined in theseismic-alloy-consensuscrate
See Also
SeismicNetwork Trait - The trait that
SeismicRethimplementsSeismicFoundry - Alternative network type for local development
SeismicSignedProvider - Full-featured provider
SeismicUnsignedProvider - Read-only provider
Seismic Testnet - Testnet chain configuration
Last updated

