AsyncSeismicPublicNamespace
Async read-only Seismic namespace
Async read-only namespace attached as w3.seismic on async public clients.
Definition
class AsyncSeismicPublicNamespace:
async def get_tee_public_key(self) -> CompressedPublicKey: ...
def contract(self, address: ChecksumAddress, abi: list[dict[str, Any]]) -> AsyncPublicContract: ...
async def get_deposit_root(self, *, address: str = DEPOSIT_CONTRACT_ADDRESS) -> bytes: ...
async def get_deposit_count(self, *, address: str = DEPOSIT_CONTRACT_ADDRESS) -> int: ...Methods
Method
Returns
Description
contract
AsyncPublicContract
Create an async read-only contract wrapper (.tread only)
Example
from seismic_web3 import SEISMIC_TESTNET
public = await SEISMIC_TESTNET.async_public_client()
tee_key = await public.seismic.get_tee_public_key()
root = await public.seismic.get_deposit_root()
count = await public.seismic.get_deposit_count()Notes
No private key is required
contract()returnsAsyncPublicContractwith.treadonly
See Also
SeismicPublicNamespace — Sync equivalent
AsyncSeismicNamespace — Wallet namespace (extends this with write operations)
AsyncPublicContract — Contract wrapper returned by
contract()
Last updated

