AsyncSeismicPublicNamespace
AsyncSeismicPublicNamespace class - Read-only public operations (async)
Overview
Access
from seismic_web3 import create_async_public_client
public = create_async_public_client("https://gcp-1.seismictest.net/rpc")
# Access the namespace (all methods are async)
await public.seismic.get_tee_public_key()
contract = public.seismic.contract(address, abi)Public vs Wallet Namespaces
Feature
Public Namespace
Wallet Namespace
Class Definition
Methods
Query Methods
get_tee_public_key()
get_deposit_root()
get_deposit_count()
Contract Factory
contract()
Usage Examples
Basic Query Operations
Concurrent Query Operations
Reading Contract Data
Concurrent Contract Reads
Monitoring Deposits
Multiple Networks Monitoring
Context Manager Pattern
Data Aggregation
Custom Deposit Contract
Async Best Practices
Use asyncio.gather() for Parallel Operations
Handle Connection Cleanup
Error Handling with Async
Batch Operations
When to Use Public vs Wallet Client
Use Async Public Client When:
Use Async Wallet Client When:
Limitations
Performance Considerations
Connection Pooling
Concurrent Limits
See Also
Last updated

