cloudSeismic Testnet

Seismic public testnet connection and configuration

The Seismic public testnet is the primary network for development and testing. It runs a full reth-based Seismic node with TEE support, shielded transactions, and all protocol features.

Configuration

Property
Value

Chain ID

5124

RPC URL

https://gcp-1.seismictest.net/rpc

Network Type

SeismicReth

Transaction Types

Legacy, EIP-1559, Seismic (0x4A)

Connecting

Signed Provider (Full Capabilities)

Use a signed provider for sending transactions, shielded writes, and signed reads:

use seismic_prelude::foundry::*;
use alloy_signer_local::PrivateKeySigner;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let signer: PrivateKeySigner = "0xYOUR_PRIVATE_KEY".parse()?;
    let wallet = SeismicWallet::from(signer);
    let url = "https://gcp-1.seismictest.net/rpc".parse()?;

    let provider = sreth_signed_provider(wallet, url).await?;

    // Verify connection
    let block_number = provider.get_block_number().await?;
    let chain_id = provider.get_chain_id().await?;
    println!("Connected to chain {chain_id} at block {block_number}");

    Ok(())
}

Unsigned Provider (Read-Only)

Use an unsigned provider for read-only operations that do not require a private key:

With Explicit Type Parameter

If you prefer to specify the network type explicitly:

Examples

Send a Shielded Transaction

Check Connection

Using Environment Variables

Notes

  • Chain ID 5124 is used for EIP-155 and EIP-712 transaction signing

  • The testnet supports all Seismic protocol features including shielded transactions and signed reads

  • The TEE public key is fetched automatically by SeismicElementsFiller on the first transaction

  • WebSocket endpoints may be available; check the Seismic documentation for current URLs

  • The testnet is suitable for development and testing but not for production use

See Also

Last updated