> For the complete documentation index, see [llms.txt](https://docs.seismic.systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seismic.systems/clients/python/namespaces/seismic-public-namespace.md).

# SeismicPublicNamespace

Sync read-only namespace attached as `w3.seismic` on public clients.

## Definition

```python
class SeismicPublicNamespace:
    def get_tee_public_key(self) -> CompressedPublicKey: ...
    def contract(self, address: ChecksumAddress, abi: list[dict[str, Any]]) -> PublicContract: ...
    def get_deposit_root(self, *, address: str = DEPOSIT_CONTRACT_ADDRESS) -> bytes: ...
    def get_deposit_count(self, *, address: str = DEPOSIT_CONTRACT_ADDRESS) -> int: ...
```

## Methods

| Method                                                                           | Returns               | Description                                         |
| -------------------------------------------------------------------------------- | --------------------- | --------------------------------------------------- |
| [`get_tee_public_key`](/clients/python/namespaces/methods/get-tee-public-key.md) | `CompressedPublicKey` | Fetch the TEE's compressed secp256k1 public key     |
| [`get_deposit_root`](/clients/python/namespaces/methods/get-deposit-root.md)     | `bytes`               | Read the deposit Merkle root (32 bytes)             |
| [`get_deposit_count`](/clients/python/namespaces/methods/get-deposit-count.md)   | `int`                 | Read the total validator deposit count              |
| `contract`                                                                       | `PublicContract`      | Create a read-only contract wrapper (`.tread` only) |

## Example

```python
from seismic_web3 import SEISMIC_TESTNET

public = SEISMIC_TESTNET.public_client()

tee_key = public.seismic.get_tee_public_key()
root = public.seismic.get_deposit_root()
count = public.seismic.get_deposit_count()
```

## Notes

* No private key is required
* `contract()` returns `PublicContract` with `.tread` only
* `get_deposit_count()` decodes an 8-byte little-endian value from contract return data

## See Also

* [AsyncSeismicPublicNamespace](/clients/python/namespaces/async-seismic-public-namespace.md) — Async equivalent
* [SeismicNamespace](/clients/python/namespaces/seismic-namespace.md) — Wallet namespace (extends this with write operations)
* [PublicContract](/clients/python/contract/public-contract.md) — Contract wrapper returned by `contract()`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
