# Developer section

- [Quickstart Guides](https://docs.ston.fi/developer-section/quickstart.md): Quick integration guides for STON.fi features - swap, liquidity provision, and Omniston aggregation
- [Swap Guide (React)](https://docs.ston.fi/developer-section/quickstart/swap.md): Complete swap integration tutorial - build a token swap interface using STON.fi SDK and React
- [Liquidity Providing Guide (React)](https://docs.ston.fi/developer-section/quickstart/liquidity.md): Quick guide to providing liquidity on STON.fi - earn fees by supplying tokens to DEX pools
- [Omniston Guide (React)](https://docs.ston.fi/developer-section/quickstart/omniston.md): Quick integration guide for Omniston - start building cross-DEX aggregation features in minutes
- [Omniston Guide (Python)](https://docs.ston.fi/developer-section/quickstart/python.md): Learn how to create a Python-based terminal client for swapping tokens on TON blockchain using Omniston protocol. Covers wallet setup, API integration, and cross-DEX swaps on STON.fi and DeDust.
- [DEX](https://docs.ston.fi/developer-section/dex.md): STON.fi DEX documentation - comprehensive guides for swaps, liquidity, farming, and smart contracts
- [Overview (DEX)](https://docs.ston.fi/developer-section/dex/overview.md): STON.fi DEX overview - decentralized exchange with AMM pools, liquidity provision, and yield farming on TON
- [Fees](https://docs.ston.fi/developer-section/dex/fees.md): Trading fees on STON.fi — per‑pool configurable fees
- [Architecture](https://docs.ston.fi/developer-section/dex/architecture.md): STON.fi DEX architecture explained - understand the smart contract design behind Jetton-to-Jetton swaps
- [SDK](https://docs.ston.fi/developer-section/dex/sdk.md): STON.fi DEX SDK documentation - TypeScript/JavaScript tools for DEX integration on TON blockchain
- [v2 (latest)](https://docs.ston.fi/developer-section/dex/sdk/v2.md): STON.fi DEX v2 SDK - advanced features with vault mechanics and single-sided liquidity
- [Swap (v2)](https://docs.ston.fi/developer-section/dex/sdk/v2/swap.md): Execute swaps on STON.fi v2 - enhanced routing with vault mechanics for optimal rates
- [Provide Liquidity (v2)](https://docs.ston.fi/developer-section/dex/sdk/v2/provide-liquidity.md): Provide liquidity on STON.fi v2 - single-sided deposits with automatic vault management
- [Refund Liquidity (v2)](https://docs.ston.fi/developer-section/dex/sdk/v2/refund-liquidity.md): Refund liquidity on STON.fi v2 - handle failed operations with vault-based architecture
- [Burn LP Tokens (v2)](https://docs.ston.fi/developer-section/dex/sdk/v2/burn-lp-tokens.md): Burn liquidity tokens on STON.fi v2 - withdraw liquidity with enhanced vault mechanics
- [Vault Operations](https://docs.ston.fi/developer-section/dex/sdk/v2/vault-operations.md): Withdraw fees from vault on STON.fi v2 - manage protocol fees and vault interactions This section contains SDK example for performing fee withdrawal from the vault contract
- [v1 SDK](https://docs.ston.fi/developer-section/dex/sdk/v1.md): STON.fi DEX v1 SDK documentation - integrate swaps, liquidity provision, and LP token management
- [Reference (v1)](https://docs.ston.fi/developer-section/dex/sdk/v1/reference.md): STON.fi DEX v1 SDK methods reference - complete API documentation for router and pool interactions
- [Swap (v1)](https://docs.ston.fi/developer-section/dex/sdk/v1/swap.md): Execute token swaps on STON.fi v1 - trade assets through AMM pools with minimal slippage
- [Provide Liquidity (v1)](https://docs.ston.fi/developer-section/dex/sdk/v1/provide-liquidity.md): Provide liquidity on STON.fi v1 - add token pairs to pools and earn trading fees as LP
- [Refund Liquidity (v1)](https://docs.ston.fi/developer-section/dex/sdk/v1/refund-liquidity.md): Refund liquidity on STON.fi v1 - handle failed liquidity provision and recover deposited tokens
- [Burn LP Tokens (v1)](https://docs.ston.fi/developer-section/dex/sdk/v1/burn-lp-tokens.md): Burn liquidity tokens on STON.fi v1 - remove liquidity and receive underlying token pairs
- [Legacy Versions](https://docs.ston.fi/developer-section/dex/sdk/legacy.md): STON.fi legacy SDK documentation - reference for deprecated v0.4 and v0.5 SDK versions
- [v0.5](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.5.md): STON.fi SDK v0.5 documentation - legacy SDK version for backward compatibility
- [Swap (v0.5)](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.5/swap.md): Legacy v0.5 swap guide - exchange TON for Jettons using deprecated SDK
- [Provide Liquidity (v0.5)](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.5/lp_provide.md): Legacy v0.5 Jetton/Jetton pool deposits - provide liquidity to token pairs
- [Refund Liquidity (v0.5)](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.5/lp_refund.md): Legacy v0.5 liquidity refund - handle failed liquidity provision operations
- [Burn LP Tokens (v0.5)](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.5/lp_burn.md): Legacy v0.5 LP burn guide - remove liquidity from Jetton/Jetton pools
- [v0.4](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.4.md): STON.fi SDK v0.4 documentation (deprecated) - legacy reference for maintaining older integrations
- [Swap (v0.4)](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.4/swap.md): Legacy v0.4 token swap guide - execute swaps using deprecated SDK methods
- [Provide Liquidity (v0.4)](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.4/lp_provide.md): Legacy v0.4 liquidity provision - add liquidity to pools using deprecated SDK methods
- [Refund Liquidity (v0.4)](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.4/lp_refund.md): Legacy v0.4 liquidity refund - recover tokens from failed liquidity operations
- [Burn LP Tokens (v0.4)](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.4/lp_burn.md): Legacy v0.4 liquidity burn guide - remove liquidity from pools in deprecated SDK version
- [Using Get Methods](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.4/getters.md): Legacy v0.4 getter methods - query pool states and contract data in deprecated SDK
- [Custom Router Revision](https://docs.ston.fi/developer-section/dex/sdk/legacy/v0.4/revision.md): STON.fi v0.4 router revision guide - understanding router contract versions and upgrades
- [Migration Guides](https://docs.ston.fi/developer-section/dex/sdk/migration.md): STON.fi SDK migration guides - upgrade paths from legacy versions to latest SDK releases
- [v1 to v2](https://docs.ston.fi/developer-section/dex/sdk/migration/v1-to-v2.md): Migration guide from SDK v1 to v2 - upgrade to vault-based architecture and new features
- [v0.5 to v1](https://docs.ston.fi/developer-section/dex/sdk/migration/v0.5-to-v1.md): Migration guide from SDK v0.5 to v1.0 - transition to stable API with enhanced features
- [v0.4 to v0.5](https://docs.ston.fi/developer-section/dex/sdk/migration/v0.4-to-v0.5.md): Migration guide from SDK v0.4 to v0.5 - update your integration with breaking changes
- [Smart Contracts](https://docs.ston.fi/developer-section/dex/smart-contracts.md): STON.fi smart contract documentation - technical references for v1 and v2 DEX contracts
- [v2](https://docs.ston.fi/developer-section/dex/smart-contracts/v2.md): STON.fi v2 smart contract API - advanced contracts with vault architecture and gas optimization
- [Router (v2)](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/router.md): STON.fi v2 Router smart contract - advanced routing with vault integration for swaps
- [Pool (v2)](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/pool.md): STON.fi v2 Pool smart contract - enhanced AMM pools with vault mechanics and optimization
- [LpAccount (v2)](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/lpaccount.md): STON.fi v2 LpAccount contract - improved LP position management with vault integration
- [LpWallet (v2)](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/lpwallet.md): STON.fi v2 LpWallet contract - enhanced LP token wallet with vault-aware functionality
- [Vault](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/vault.md): STON.fi v2 Vault smart contract - token custody and fee management for enhanced DEX operations
- [Examples](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/examples.md): STON.fi v2 smart contract examples - practical implementations of swaps, liquidity, and vaults
- [Swap Examples](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/examples/swap.md): Swap implementation examples - various swap schemes and patterns using v2 smart contracts
- [LP Provide Examples](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/examples/lp-provide.md): Liquidity provision smart contract example - implement LP operations with v2 contracts
- [Vault Examples](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/examples/vault.md): Token vault mechanics example - understand v2 vault operations for custody and fee management
- [Op Codes](https://docs.ston.fi/developer-section/dex/smart-contracts/v2/op-codes.md): STON.fi v2 operation codes reference - message opcodes for smart contract interactions
- [v1 Smart Contracts](https://docs.ston.fi/developer-section/dex/smart-contracts/v1.md): STON.fi v1 smart contract API reference - technical specs for Router, Pool, and LP contracts
- [Router (v1)](https://docs.ston.fi/developer-section/dex/smart-contracts/v1/router.md): STON.fi v1 Router smart contract - entry point for swaps and liquidity operations on-chain
- [Pool (v1)](https://docs.ston.fi/developer-section/dex/smart-contracts/v1/pool.md): STON.fi v1 Pool smart contract - AMM pool implementation with constant product formula
- [LpAccount (v1)](https://docs.ston.fi/developer-section/dex/smart-contracts/v1/lpaccount.md): STON.fi v1 LpAccount contract - manages liquidity provider positions and LP token minting
- [LpWallet (v1)](https://docs.ston.fi/developer-section/dex/smart-contracts/v1/lpwallet.md): STON.fi v1 LpWallet contract - LP token wallet implementation for liquidity providers
- [REST API](https://docs.ston.fi/developer-section/dex/api.md): STON.fi DEX API documentation - RESTful interface for programmatic DEX access and data queries
- [API Reference](https://docs.ston.fi/developer-section/dex/api/reference.md): STON.fi DEX API reference - REST endpoints for pools, swaps, liquidity, and market data
- [Farm](https://docs.ston.fi/developer-section/dex/farm.md): STON.fi yield farming guide - stake LP tokens to earn additional rewards on top of trading fees
- [Stake in Farm](https://docs.ston.fi/developer-section/dex/farm/stake.md): SDK example for staking tokens - deposit LP tokens into STON.fi farming pools to earn rewards
- [Claim Rewards](https://docs.ston.fi/developer-section/dex/farm/claim.md): SDK example for claiming farming rewards - harvest your earned tokens from STON.fi farming pools
- [Unstake from Farm](https://docs.ston.fi/developer-section/dex/farm/unstake.md): SDK example for unstaking tokens - withdraw your LP tokens from STON.fi farming contracts
- [Destroy Farm NFT](https://docs.ston.fi/developer-section/dex/farm/destroy.md): SDK example for destroying farm NFT - clean up unstaked farming positions and recover storage fees
- [Omniston Protocol](https://docs.ston.fi/developer-section/omniston.md): Build swap aggregation solutions for TON and cross-chain execution with Omniston
- [Overview (Omniston)](https://docs.ston.fi/developer-section/omniston/overview.md): Learn how Omniston aggregates liquidity for TON and cross-chain swaps through RFQ, resolvers, and connected liquidity sources.
- [How Omniston Works](https://docs.ston.fi/developer-section/omniston/how-omniston-works.md): Protocol-level Omniston concepts for RFQs, settlement modes, orders, executions, HTLC-based cross-chain settlement, timings, and fees.
- [Omniston Glossary](https://docs.ston.fi/developer-section/omniston/glossary.md): Definitions of Omniston terms and roles.
- [Omniston API v1beta8](https://docs.ston.fi/developer-section/omniston/v1beta8.md): What changed in Omniston v1beta8, how the API makes cross-chain settlement explicit, and where to find migration, SDK, and concept docs.
- [Migration v1beta7 → v1beta8](https://docs.ston.fi/developer-section/omniston/v1beta7-to-v1beta8-migration-guide.md): Protocol terminology, API surface, and flow changes when migrating Omniston API v1beta7 to v1beta8.
- [SDK](https://docs.ston.fi/developer-section/omniston/sdk.md): Omniston SDK reference - TypeScript/JavaScript tools for building cross-chain liquidity aggregation
- [Node.js](https://docs.ston.fi/developer-section/omniston/sdk/nodejs.md): Flow-based guide for integrating Omniston SDK in Node.js with the v1beta8 API
- [React](https://docs.ston.fi/developer-section/omniston/sdk/react.md): Flow-based guide for integrating Omniston SDK React in applications
- [React SDK Migration v0.7 → v0.8](https://docs.ston.fi/developer-section/omniston/sdk/migration-v0.7-to-v0.8.md): Prompt and checklist for migrating @ston-fi/omniston-sdk-react from v0.7 and Omniston API v1beta7 to v0.8 and v1beta8.
- [Swap Protocol](https://docs.ston.fi/developer-section/omniston/swap.md): Complete guide to Omniston Swap Protocol - integrate cross-DEX swapping capabilities into your TON applications
- [Overview (Swap)](https://docs.ston.fi/developer-section/omniston/swap/overview.md): Understanding swap operations in Omniston protocol - execute efficient token swaps across TON blockchain DEXs
- [Advanced Features](https://docs.ston.fi/developer-section/omniston/swap/advanced.md): Advanced swap features with extra data protocol - customize swap parameters and routing for complex trading scenarios
- [gRPC Integration](https://docs.ston.fi/developer-section/omniston/swap/grpc.md): Integrate Omniston swaps using gRPC API - high-performance protocol for programmatic token trading on TON
- [Resolvers](https://docs.ston.fi/developer-section/omniston/resolvers.md): Understanding Omniston Resolvers - smart routing engines that find optimal swap paths across TON DEXs
- [How to Become a Resolver](https://docs.ston.fi/developer-section/omniston/resolvers/guide.md): Step-by-step guide to integrate Omniston resolvers - implement smart routing for optimal swap execution
- [Referral Fees](https://docs.ston.fi/developer-section/omniston/referral-fees.md): Omniston referral fees guide - earn commissions from DEX v1, v2, DeDust, Tonco, and Escrow swap volumes
- [STON.fi Widget](https://docs.ston.fi/developer-section/widget.md): Embed a swap feature and earn fees - in minutes
- [Full Guide & Reference](https://docs.ston.fi/developer-section/widget/widget.md): Integrate Omniston swaps using the core JavaScript widget package
- [Common Utilities](https://docs.ston.fi/developer-section/common.md): Shared utilities and patterns used across STON.fi — transaction sending, best practices, and TON-specific guidance
- [Transaction Sending](https://docs.ston.fi/developer-section/common/transaction-sending.md): Complete guide for sending transactions on TON blockchain - TonConnect, TON Core, and TonWeb methods
- [Via TON Core](https://docs.ston.fi/developer-section/common/transaction-sending/toncore.md): Send transactions using TON Core library - low-level transaction building for advanced use cases This section contains a guide for sending transactions in TON blockchain using @ton/ton
- [Via TonWeb](https://docs.ston.fi/developer-section/common/transaction-sending/tonweb.md): Send transactions using TonWeb library - JavaScript SDK for interacting with TON blockchain This section contains a guide for sending transactions in TON blockchain using tonweb
- [Via TonConnect](https://docs.ston.fi/developer-section/common/transaction-sending/tonconnect.md): Send transactions using TonConnect - integrate wallet connectivity for seamless user interactions This section contains a guide for sending transactions in TON blockchain using @tonconnect


---

# 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.ston.fi/developer-section.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.
