How it works
  • SHORT INSIGHT
  • How UtyabSwap dex works!
    • swapping
    • fees
    • slippage & price impact
    • button
    • price chart
  • HOW TO CREATE A LIQUIDITY POOL
    • create a liquidity pool
    • deposit liquidity
  • dev
    • token verify
    • automated market maker
    • contracts/wallets
    • logos
  • SDK
    • getting started
    • how to swap
    • how to add liquidity
    • how to withdraw Liquidity
  • STAKING
    • liquidity staking
    • jetton staking
  • REFERRAL EARNINGS
    • referral
    • create a referral link
  • UTYAB
    • burn
  • SOCIALS & CONTACT
  • TERMS/POLICY
    • privacy policy
    • terms
Powered by GitBook
On this page
  • Installation:
  • Initialisation:
  1. SDK

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

PreviouslogosNexthow to swap

Last updated 5 months ago