> 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/reference/rpc-methods/seismic-get-tee-public-key.md).

# seismic\_getTeePublicKey

Returns the TEE's encryption public key. This is the first step in building a [Seismic transaction](/reference/seismic-transaction.md) — clients use this public key with their own ephemeral key to derive a shared AES encryption key via ECDH.

## Parameters

None.

## Returns

| Field  | Type                  | Description                     |
| ------ | --------------------- | ------------------------------- |
| result | hex string (33 bytes) | Compressed secp256k1 public key |

## Example Request

```bash
curl -X POST https://testnet-1.seismictest.net/rpc \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "seismic_getTeePublicKey",
    "params": [],
    "id": 1
  }'
```

## Example Response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "028e76821eb4d77fd30223ca971c49738eb5b5b71eabe93f96b348fdce788ae5a0"
}
```

## Related

* [The Seismic Transaction](/reference/seismic-transaction.md) — how this key is used in transaction encryption
* [Encryption (seismic-viem)](/clients/typescript/viem/encryption.md) — client-side key exchange
* [ECDH Precompile](/reference/precompiles/ecdh.md) — on-chain ECDH

## Try It

{% embed url="<https://codesandbox.io/embed/github/SeismicSystems/seismic/tree/gh-pages?view=preview&hidenavigation=1&initialpath=%2Frpc-terminal%2Findex.html%3Fmethod%3Dseismic_getTeePublicKey%26embed%3Dtrue>" %}


---

# 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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.seismic.systems/reference/rpc-methods/seismic-get-tee-public-key.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
