Skip to main content

Introduction

MyTonSwap logo

SDK for MyTonSwap DEX aggregator

GitHub package.json version GitHub last commit GitHub Actions Workflow Status NPM Downloads

MyTonSwap SDK Introduction

The MyTonSwap SDK is a comprehensive JavaScript library that empowers developers to interact with the TON blockchain seamlessly. It provides robust tools for accessing blockchain assets, optimizing token swaps, and managing payloads—all while abstracting away the complexities of low-level blockchain interactions. Whether you’re building a DeFi application, integrating token swaps, or creating analytics tools, the MyTonSwap SDK offers the features and flexibility needed to streamline development on the TON network.

Key Features

  • Access to TON Blockchain Assets

    • Retrieve specific assets using their address or unique identifier.
    • Fetch a paginated list of assets for easier browsing and filtering.
    • Perform quick and accurate searches for assets by name, ticker, or other identifying information.
  • Token Swap Optimization

    • Efficiently calculate the best swap routes between tokens to minimize fees and maximize user returns.
    • Ensure users receive the best rates with optimized swap paths.
  • Swap Payload Creation

    • Generate ready-to-use payloads for token swaps on the TON blockchain.
    • Simplify the process of initiating swaps with pre-configured, secure payloads.
  • Built-in Utility Functions

    • Convert between TON units with ease using the toNano and fromNano functions.
    • Handle Ton denominations smoothly without manual calculations.

Why Use MyTonSwap SDK?

  • Simplified Development: Offers high-level APIs to interact with the TON blockchain without dealing with intricate low-level details.
  • Efficiency: Provides optimized routes and utilities for smooth token swaps and asset management.
  • Comprehensive: Covers a wide range of functionalities, from asset retrieval to payload generation, making it a one-stop solution for TON-based projects.

This SDK is perfect for developers looking to integrate the TON ecosystem into their projects with minimal effort and maximum efficiency.