> 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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.seismic.systems/reference/rpc-methods/seismic-get-tee-public-key.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.
