brackets-curlyMethods

Reference documentation for Seismic namespace methods

This section provides detailed documentation for all methods available on the Seismic namespace classes. Each method is documented with signatures, parameters, return values, examples, and implementation details.


Method Categories

Query Methods (Public)

These methods are available on both public and wallet clients. They query read-only data from the network.

Method
Description
Available On

Fetch the TEE's public key for encryption

Public + Wallet

Read the deposit Merkle root

Public + Wallet

Read the total number of deposits

Public + Wallet

Transaction Methods (Wallet Only)

These methods require a private key and are only available on wallet clients.

Method
Description
Available On

Send a shielded transaction with encrypted calldata

Wallet only

Send a shielded transaction and return debug info

Wallet only

Execute a signed read with encryption

Wallet only

Submit a validator deposit

Wallet only


Quick Reference

Shielded Transactions

Signed Reads

Deposit Queries

Validator Deposits


Method Comparison

Write Operations

Feature
send_shielded_transaction
debug_send_shielded_transaction
deposit

Encrypts calldata

✅ Yes

✅ Yes

❌ No (transparent)

Returns transaction hash

✅ Yes

✅ Yes

✅ Yes

Returns debug info

❌ No

✅ Yes

❌ No

Modifies state

✅ Yes

✅ Yes

✅ Yes

Use case

Production writes

Development/debugging

Validator deposits

Read Operations

Feature
signed_call
get_tee_public_key
get_deposit_root
get_deposit_count

Requires private key

✅ Yes

❌ No

❌ No

❌ No

Encrypts calldata

✅ Yes

N/A

N/A

N/A

Modifies state

❌ No

❌ No

❌ No

❌ No

Use case

Private reads

Get encryption key

Query deposit tree

Count validators


Client Availability

Public Clients

Created with create_public_client() or create_async_public_client():

Wallet Clients

Created with create_wallet_client() or create_async_wallet_client():


Sync vs Async

All methods are available in both synchronous and asynchronous variants:

Sync Example

Async Example


Common Patterns

Error Handling

All methods can raise exceptions. Wrap calls in try-except blocks:

Transaction Confirmation

Always wait for transaction confirmation before assuming success:

Security Parameters

Customize security parameters when needed:


Best Practices

Use High-Level APIs When Possible

Debug During Development

Validate Inputs


Method Documentation

Query Methods

Transaction Methods

Utility Functions

Deposit Methods


See Also

Last updated