ton-create-wallet
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreate TON Agentic Wallet
创建TON Agentic钱包
Deploy an on-chain agentic wallet on TON. The agent generates operator keys, opens the dashboard when local browser/shell tools are available, and uses callback-based completion only in long-lived stdio/HTTP MCP server sessions.
部署TON链上Agentic钱包。Agent会生成操作员密钥,若本地浏览器/Shell工具可用则打开仪表板,仅在长期运行的stdio/HTTP MCP服务器会话中使用基于回调的完成方式。
MCP Tools
MCP工具
| Tool | Description |
|---|---|
| Generate operator keys, create pending setup, return dashboard URL |
| List pending setup drafts and their callback status |
| Read one pending setup by |
| Finish onboarding from callback or manual wallet address |
| Cancel a pending setup |
| 工具 | 描述 |
|---|---|
| 生成操作员密钥,创建待处理的设置流程,返回仪表板URL |
| 列出待处理的设置草稿及其回调状态 |
| 通过 |
| 通过回调或手动输入钱包地址完成入门流程 |
| 取消待处理的设置流程 |
Tool Parameters
工具参数
| Tool | Required | Optional |
|---|---|---|
| — | |
| | — |
| | |
| | — |
| 工具 | 必填项 | 可选项 |
|---|---|---|
| — | |
| | — |
| | |
| | — |
Workflow
工作流程
- Call — this generates an operator key pair and returns a
agentic_start_root_wallet_setup,setupId, anddashboardUrlcallbackUrl - If the environment exposes local browser or shell tools, open yourself with the platform opener (
dashboardUrl,open,xdg-open) or browser automation; only paste the link to the user if automatic opening is unavailable or failsstart - Tell the user only to approve wallet deployment from their main TON wallet; do not ask them to retype the URL or copy intermediate data
- In long-lived stdio/HTTP MCP server sessions, poll or
agentic_get_root_wallet_setupand wait foragentic_list_pending_root_wallet_setupswhen callback flow is available; then callstatus: "callback_received"withagentic_complete_root_wallet_setup;setupId - In raw one-shot CLI usage, skip callback polling and ask for after the user deploys the wallet; then call
walletAddresswithagentic_complete_root_wallet_setupwalletAddress - Confirm the wallet is active with or
get_current_wallet(seelist_walletsskill)ton-manage-wallets
- 调用——这会生成操作员密钥对,并返回
agentic_start_root_wallet_setup、setupId和dashboardUrlcallbackUrl - 若当前环境支持本地浏览器或Shell工具,使用平台启动器(,
open,xdg-open)或浏览器自动化工具自动打开start;若自动打开不可用或失败,再将链接提供给用户dashboardUrl - 仅告知用户从其主TON钱包中批准钱包部署,不要要求用户重新输入URL或复制中间数据
- 在长期运行的stdio/HTTP MCP服务器会话中,轮询或
agentic_get_root_wallet_setup,当回调流程可用时,等待agentic_list_pending_root_wallet_setups状态,然后使用status: "callback_received"调用setupId;agentic_complete_root_wallet_setup - 在原生一次性CLI使用场景中,跳过回调轮询,待用户部署钱包后向其索要,然后使用
walletAddress调用walletAddressagentic_complete_root_wallet_setup - 使用或
get_current_wallet确认钱包已激活(详见list_wallets技能)ton-manage-wallets
How It Works
工作原理
- The agent keeps the operator private key — it can sign transactions autonomously
- The user keeps the owner key — they can withdraw funds or revoke access at any time
- The wallet is an on-chain smart contract (NFT-based), not a custodial service
- The dashboard is at
agents.ton.org
- Agent保存操作员私钥——可自主签署交易
- 用户保存所有者密钥——可随时提取资金或撤销访问权限
- 钱包是基于NFT的链上智能合约,而非托管服务
- 仪表板地址为
agents.ton.org
Environment Variables
环境变量
| Variable | Description |
|---|---|
| |
| Public URL for the onboarding callback (auto in HTTP mode) |
| Port for the callback server |
| 变量 | 描述 |
|---|---|
| |
| 入门流程回调的公共URL(HTTP模式下自动配置) |
| 回调服务器的端口 |
Notes
注意事项
- Callback-driven completion is for long-lived stdio/HTTP MCP server sessions; raw CLI should use manual completion
walletAddress - If automatic dashboard opening is supported in the current environment, do it instead of asking the user to open the URL manually
- In raw CLI mode, ask for the wallet address after deployment because the callback server is not available long enough to complete the flow
- After wallet creation, fund the wallet with TON before using transfer or swap skills
- 基于回调的完成方式适用于长期运行的stdio/HTTP MCP服务器会话;原生CLI应使用手动输入的完成方式
walletAddress - 若当前环境支持自动打开仪表板,则自动执行该操作,而非让用户手动打开URL
- 在原生CLI模式下,部署完成后需向用户索要钱包地址,因为回调服务器无法长时间运行以完成整个流程
- 创建钱包后,需先向钱包充值TON,再使用转账或兑换技能