# SDK

### <mark style="color:blue;">Overview</mark>

The Premia SDK is available in Typescript and is the codebase can be used to query data stored in smart contracts or to modify data on-chain by signing and executing transactions on-chain.

The SDK is separated into three main groups, for simple understanding:

* **Types & Entities**
* **Queries (Reads)**

  Queries only read state from contracts on-chain or subgraphs, never update state.
* **Mutations (Writes)**

  Mutations update the state of a contract on-chain.


---

# 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.premia.blue/developer-center/sdk.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.
