← 返回
未分类 中文

Tongateway

Access TON blockchain tools to check wallet info, tokens, send transfers, resolve .ton names, trade on DEX, and manage autonomous agent wallets.
使用TON区块链工具检查钱包信息与代币、发送转账、解析.ton域名、DEX交易及管理自主代理钱包。
pewpewgogo pewpewgogo 来源
未分类 clawhub v0.9.3 1 版本 99724.5 Key: 无需
★ 0
Stars
📥 362
下载
💾 0
安装
1
版本
#latest

概述

Agent Gateway

Agent Gateway gives you 16 tools to interact with TON blockchain. Check balances, view tokens/NFTs, send transfers, resolve .ton names, place DEX orders, and deploy autonomous agent wallets.

MCP package: @tongateway/mcp (install via npx -y @tongateway/mcp)

Authentication

If you get "No token configured" errors, authenticate first:

  1. Call auth.request — you'll get a one-time link
  2. Ask the user to open the link and connect their wallet
  3. Call auth.get_token with the authId — you'll get a token
  4. All other tools now work. Token persists across restarts.

Tools

Wallet

ToolParamsDescription
---------------------------
wallet.infoWallet address, TON balance, account status
wallet.jettonsAll token balances (USDT, NOT, DOGS, etc.)
wallet.transactionslimit? (number)Recent transaction history
wallet.nftsNFTs owned by the wallet

Transfers (Safe — requires wallet approval)

ToolParamsDescription
---------------------------
transfer.requestto, amountNano, payload?, stateInit?Queue a TON transfer for owner approval
transfer.statusidCheck status: pending, confirmed, rejected, expired
transfer.pendingList all pending transfer requests

Lookup

ToolParamsDescription
---------------------------
lookup.resolve_namedomainResolve .ton domain to address. ALWAYS use before transfer when user gives a .ton name
lookup.pricecurrencies?TON price in USD/EUR/etc.

DEX (open4dev order book)

ToolParamsDescription
---------------------------
dex.create_orderfromToken, toToken, amount, pricePlace a limit order. Price is human-readable (e.g. 20 = "1 USDT = 20 AGNT")
dex.pairsList available trading pairs

Agent Wallet (Autonomous — NO approval needed)

ToolParamsDescription
---------------------------
agent_wallet.deployDeploy a dedicated wallet contract. WARNING: agent can spend funds without approval
agent_wallet.transferwalletAddress, to, amountNanoSend TON directly from agent wallet
agent_wallet.infowalletAddress?Balance, seqno, status. Omit address to list all

Auth

ToolParamsDescription
---------------------------
auth.requestlabel?Generate a one-time auth link
auth.get_tokenauthIdRetrieve token after user connects wallet

Amount conversion

Amounts are in nanoTON: 1 TON = 1,000,000,000 nanoTON

TONnanoTON
--------------
0.1100000000
0.5500000000
11000000000
1010000000000

Token decimals: TON/NOT/DOGS/BUILD/AGNT/PX/CBBTC = 9 decimals. USDT/XAUT0 = 6 decimals.

Usage examples

Check wallet and tokens

wallet.info()
→ Address: 0:9d43...0c02, Balance: 823.18 TON, Status: active

wallet.jettons()
→ USDT: 107.79, NOT: 3,186,370.60, BUILD: 45,277.57

Send TON to .ton domain

lookup.resolve_name({ domain: "alice.ton" })
→ alice.ton → 0:83df...31a8

transfer.request({ to: "0:83df...31a8", amountNano: "500000000" })
→ Transfer request created. Approve in your wallet app.

Place a DEX order

dex.create_order({ fromToken: "NOT", toToken: "TON", amount: "10000", price: 0.000289 })
→ Order placed on open4dev DEX. Approve in your wallet app.

Autonomous transfer (no approval)

agent_wallet.deploy()
→ Agent Wallet deployed at EQCT1...

agent_wallet.transfer({ walletAddress: "EQCT1...", to: "0:abc...", amountNano: "500000000" })
→ Transfer executed. No approval needed.

Important

  • Safe mode (default): You request transfers, the wallet owner approves on their phone
  • Autonomous mode: Agent wallet — agent signs directly, no approval. Only use when user explicitly asks
  • Requests expire in 5 minutes if not approved
  • Always use lookup.resolve_name when the user gives a .ton domain
  • Token persists in ~/.tongateway/token across restarts

Security

See SECURITY.md for full security model details.

Links

  • Website: https://tongateway.ai
  • API docs: https://api.tongateway.ai/docs
  • MCP package: https://www.npmjs.com/package/@tongateway/mcp
  • GitHub: https://github.com/tongateway/mcp

版本历史

共 1 个版本

  • v0.9.3 当前
    2026-05-07 09:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,909
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 321,017
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 814,825