UtyabSwap SDK
  • Getting Started
  • How to Swap
  • How to add Liquidity
  • How to withdraw Liquidity
Powered by GitBook
On this page
  • Installation:
  • Initialisation:

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:

npm install @utyablabs/sdk
yarn add @utyablabs/sdk
pnpm install @utyablabs/sdk
bun add @utyablabs/sdk

Initialisation:

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)
);

NextHow to Swap

Last updated 6 months ago