Client
Creating sync and async Seismic clients
The Seismic Python SDK provides two client types for interacting with Seismic nodes:
Wallet client — Full capabilities (shielded writes, signed reads, deposits). Requires a private key.
Public client — Read-only (transparent reads, TEE public key, deposit queries). No private key needed.
Both clients are available in sync and async variants.
Quick Start
Installation
pip install seismic-web3Or with uv:
uv add seismic-web3Wallet Client (Sync)
import os
from seismic_web3 import SEISMIC_TESTNET, PrivateKey
pk = PrivateKey.from_hex_str(os.environ["PRIVATE_KEY"])
w3 = SEISMIC_TESTNET.wallet_client(pk)This gives you a standard Web3 instance with an extra w3.seismic namespace. Everything from web3.py works as usual — w3.eth.get_block(...), w3.eth.wait_for_transaction_receipt(...), etc.
Wallet Client (Async)
Every method on w3.seismic and on ShieldedContract is await-able when using the async client.
Public Client
The public client's w3.seismic namespace has limited methods: get_tee_public_key(), get_deposit_root(), get_deposit_count(), and contract() (with .tread only).
Client Factory Functions
Wallet Clients (Require Private Key)
Public Clients (No Private Key)
Chain-Based Creation
The recommended approach is to use chain configuration objects:
See Chains Configuration for more details.
Encryption
The wallet client automatically handles encryption setup:
Fetches the network's TEE public key
Uses this key to encrypt calldata for all shielded transactions and signed reads
You don't need to manage this manually, but the encryption state is accessible at w3.seismic.encryption if needed.
Encryption Components
Holds AES key and encryption keypair
Derives encryption state from TEE public key
Client Capabilities
Wallet Client (w3.seismic)
send_shielded_transaction()- Send shielded transactionsdebug_send_shielded_transaction()- Debug shielded transactionssigned_call()- Execute signed readsget_tee_public_key()- Get TEE public keydeposit()- Deposit ETH/tokensget_deposit_root()- Query deposit merkle rootget_deposit_count()- Query deposit countcontract()- Create contract wrappers
Public Client (w3.seismic)
get_tee_public_key()- Get TEE public keyget_deposit_root()- Query deposit merkle rootget_deposit_count()- Query deposit countcontract()- Create contract wrappers (.treadonly)
See Also
Contract Instances - Working with shielded and public contracts
Namespaces - Detailed
w3.seismicnamespace documentationChains Configuration - Chain configs and constants
Shielded Write Guide - Step-by-step shielded transaction guide
Last updated

