ton-send
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSend GRAM (ex. TON) & Tokens
发送GRAM(例如TON)与代币
Transfer GRAM (ex. TON) or jettons to any address. Supports TON DNS resolution for and domains.
.ton.t.me向任意地址转移GRAM(例如TON)或jetton。支持对.ton和.t.me域名进行TON DNS解析。
MCP Tools
MCP工具
| Tool | Required | Optional |
|---|---|---|
| | |
| | |
| | |
| | |
| | — |
| | — |
build_ton_transferbuild_jetton_transfertransaction.messagestransaction.fromAddressemulate_transactionsend_raw_transaction| 工具 | 必填参数 | 可选参数 |
|---|---|---|
| | |
| | |
| | |
| | |
| | — |
| | — |
build_ton_transferbuild_jetton_transfertransaction.messagestransaction.fromAddressemulate_transactionsend_raw_transactionWorkflows
工作流
Send GRAM (ex. TON)
发送GRAM(例如TON)
- If the user provides a DNS name (e.g., ,
foundation.ton) instead of a raw address, calluser.t.mefirstresolve_dns - Call with address and amount to build the transaction (it is NOT sent)
build_ton_transfer - Preview it with using the returned
emulate_transaction(recommended before broadcasting)transaction.messages - Ask one short yes/no confirmation that restates the amount and recipient
- Broadcast with passing the
send_raw_transactionandtransaction.messagestransaction.fromAddress - Poll with the returned
get_transaction_statusuntil status isnormalizedHashorcompleted(seefailedskill). User can ask to skip polling.ton-balance
- 如果用户提供的是DNS名称(例如、
foundation.ton)而非原始地址,先调用user.t.meresolve_dns - 使用地址和金额调用构建交易(此时交易未发送)
build_ton_transfer - 使用返回的调用
transaction.messages预览交易(建议在广播前执行)emulate_transaction - 向用户发送简短的确认请求,重述金额和收款方,只需用户回复是/否
- 传入和
transaction.messages,调用transaction.fromAddress广播交易send_raw_transaction - 使用返回的调用
normalizedHash轮询,直到状态变为get_transaction_status或completed(参考failed技能)。用户可要求跳过轮询。ton-balance
Send Jetton (Token)
发送Jetton(代币)
- If user mentions a token by name, call (see
get_known_jettonsskill) to find theton-balancejettonAddress - Call to verify sufficient balance
get_jetton_balance - Call with the
build_jetton_transfer,jettonAddress, andtoAddressto build the transaction (it is NOT sent)amount - Preview it with using the returned
emulate_transaction(recommended before broadcasting)transaction.messages - Ask one short yes/no confirmation before sending
- Broadcast with passing the
send_raw_transactionandtransaction.messages(jetton messages target the sender's jetton wallet)transaction.fromAddress - Poll until completed or failed
get_transaction_status
- 如果用户提及代币名称,调用(参考
get_known_jettons技能)获取ton-balancejettonAddress - 调用验证余额是否充足
get_jetton_balance - 使用、
jettonAddress和金额调用toAddress构建交易(此时交易未发送)build_jetton_transfer - 使用返回的调用
transaction.messages预览交易(建议在广播前执行)emulate_transaction - 发送简短的是/否确认请求,确认后再发送
- 传入和
transaction.messages调用transaction.fromAddress广播交易(jetton消息指向发送者的jetton钱包)send_raw_transaction - 轮询直到交易完成或失败
get_transaction_status
Notes
注意事项
- Amounts are human-readable (e.g., = 1.5 GRAM (ex. TON),
"1.5"= 100 tokens)"100" - /
build_ton_transferbuild the transaction only;build_jetton_transferis the tool that actually signs and broadcastssend_raw_transaction - Use to preview expected balance changes before broadcasting (fake signature)
emulate_transaction - Always confirm with the user before broadcasting a transfer; prefer the host client's structured confirmation UI when available, otherwise accept natural-language yes/no and do not require a fixed confirmation phrase
- After broadcasting, poll by default. User can specify whether to check status.
get_transaction_status - If no wallet is configured, use the skill first
ton-create-wallet
- 金额为人类可读格式(例如= 1.5 GRAM(例如TON),
"1.5"= 100枚代币)"100" - /
build_ton_transfer仅构建交易;实际签名并广播交易的工具是build_jetton_transfersend_raw_transaction - 可使用在广播前预览预期的余额变化(模拟签名)
emulate_transaction - 广播转账前务必获得用户确认;若有宿主客户端的结构化确认UI则优先使用,否则接受自然语言的是/否回复,无需固定确认语
- 广播后默认轮询。用户可指定是否检查状态。
get_transaction_status - 若未配置钱包,需先使用技能
ton-create-wallet