# SeismicNamespace

`SeismicNamespace` extends `SeismicPublicNamespace` with private-key operations.

## Definition

```python
class SeismicNamespace(SeismicPublicNamespace):
    encryption: EncryptionState

    def contract(..., eip712: bool = False) -> ShieldedContract: ...
    def send_shielded_transaction(..., eip712: bool = False) -> HexBytes: ...
    def signed_call(..., gas: int = 30_000_000, eip712: bool = False) -> HexBytes: ...
    def debug_send_shielded_transaction(..., eip712: bool = False) -> DebugWriteResult: ...
    def deposit(..., address: str = DEPOSIT_CONTRACT_ADDRESS) -> HexBytes: ...
```

## Methods

| Method                                                                                                     | Returns               | Description                                                                                       |
| ---------------------------------------------------------------------------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------- |
| [`send_shielded_transaction`](/clients/python/namespaces/methods/send-shielded-transaction.md)             | `HexBytes`            | Encrypt, sign, and broadcast a shielded transaction                                               |
| [`signed_call`](/clients/python/namespaces/methods/signed-call.md)                                         | `HexBytes`            | Execute a signed read with encrypted calldata                                                     |
| [`debug_send_shielded_transaction`](/clients/python/namespaces/methods/debug-send-shielded-transaction.md) | `DebugWriteResult`    | Send shielded transaction and return debug artifacts                                              |
| [`deposit`](/clients/python/namespaces/methods/deposit.md)                                                 | `HexBytes`            | Submit a validator deposit (transparent)                                                          |
| [`contract`](/clients/python/contract/shielded-contract.md)                                                | `ShieldedContract`    | Create a shielded contract wrapper                                                                |
| `get_tee_public_key`                                                                                       | `CompressedPublicKey` | Inherited from [`SeismicPublicNamespace`](/clients/python/namespaces/seismic-public-namespace.md) |
| `get_deposit_root`                                                                                         | `bytes`               | Inherited from [`SeismicPublicNamespace`](/clients/python/namespaces/seismic-public-namespace.md) |
| `get_deposit_count`                                                                                        | `int`                 | Inherited from [`SeismicPublicNamespace`](/clients/python/namespaces/seismic-public-namespace.md) |

## Example

```python
from seismic_web3 import SEISMIC_TESTNET, PrivateKey, SRC20_ABI

pk = PrivateKey.from_hex_str("0x...")
w3 = SEISMIC_TESTNET.wallet_client(pk)

token = w3.seismic.contract("0xTokenAddress", SRC20_ABI)

tx_hash = token.write.transfer("0xRecipient", 100)
raw = token.read.balanceOf()
```

## Notes

* Includes every public namespace method
* `signed_call()` always returns `HexBytes`; empty responses are `HexBytes(b"")`
* `deposit()` validates byte lengths and raises `ValueError` on mismatch
* Attached as `w3.seismic` by `CHAIN.wallet_client(pk)`

## See Also

* [AsyncSeismicNamespace](/clients/python/namespaces/async-seismic-namespace.md) — Async equivalent
* [SeismicPublicNamespace](/clients/python/namespaces/seismic-public-namespace.md) — Read-only base class
* [ShieldedContract](/clients/python/contract/shielded-contract.md) — Contract wrapper returned by `contract()`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.seismic.systems/clients/python/namespaces/seismic-namespace.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
