ton-swap

Swap tokens on TON via DEX aggregator. Two-step flow: get a quote, confirm with the user, then execute.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ton-swap" with this command: npx skills add ton-connect/kit/ton-connect-kit-ton-swap

Swap TON Tokens

Swap tokens on TON via DEX aggregator. Two-step flow: get a quote, confirm with the user, then execute.

MCP Tools

Tool Required Optional

get_swap_quote

fromToken , toToken , amount

walletSelector

send_raw_transaction

messages

walletSelector

get_known_jettons

— —

Workflow

  • If the user mentions a token by name (e.g., "USDT", "jUSDC"), call get_known_jettons to resolve the jetton address

  • Call get_swap_quote with fromToken , toToken , and amount

  • Use "TON" for native TON, or the jetton master contract address for tokens

  • Amount is human-readable (e.g., "1.5" = 1.5 TON)

  • Show the quote details to the user and ask for confirmation

  • Call send_raw_transaction with the transaction params returned by the quote

  • Poll get_transaction_status with the returned normalizedHash until status is completed or failed (see ton-balance skill). User can ask to skip polling.

Notes

  • Always confirm the swap with the user before executing

  • The quote returns transaction messages ready for send_raw_transaction

  • After execution, poll get_transaction_status by default. User can specify whether to check status.

  • If no wallet is configured, use the ton-create-wallet skill first

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ton-send

No summary provided by upstream source.

Repository SourceNeeds Review
General

ton-balance

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

ton-manage-wallets

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

ton-create-wallet

No summary provided by upstream source.

Repository SourceNeeds Review