# Getting Started

The UtyabSwap SDK is a library designed for TypeScript, providing smooth integration with the UtyabSwap Protocol. It facilitates operations with smart contracts, performs various calculations, includes the UtyabSwap API client, and more.

### Installation:

{% tabs %}
{% tab title="npm" %}

```bash
npm install @utyablabs/sdk
```

{% endtab %}

{% tab title="yarn" %}

```bash
yarn add @utyablabs/sdk
```

{% endtab %}

{% tab title="pnpm" %}

```bash
pnpm install @utyablabs/sdk
```

{% endtab %}

{% tab title="bun" %}

```bash
bun add @utyablabs/sdk
```

{% endtab %}
{% endtabs %}

### Initialisation:

```typescript
import { TonClient4 } from "@ton/ton";
import { Factory } from "@utyablabs/sdk";

const client = new TonClient4({
	endpoint: "https://mainnet-v4.tonhubapi.com",
});

const factory = client.open(
	Factory.createFromAddress(Factory.FACTORY_ADDRESS)
);
```


---

# 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://utyabswap.gitbook.io/utyabswap-sdk/getting-started.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.
