简介
通过 OpenAnt CLI 在 Solana 和 Base 链上安全转账代币,支持原生币(SOL、ETH)、USDC 及任意代币地址,需用户确认后执行不可逆交易。
原始描述
Transfer tokens from OpenAnt wallet on Solana or Base. Use when the user wants to send, transfer, or pay tokens via OpenAnt. Supports native coins (SOL, ETH)...
通过你的 Agent 添加
安装目录:send-token/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
send-token 是一款基于 OpenAnt CLI 的跨链代币转账技能,支持 Solana 和 Base 两大生态。用户可通过自然语言指令(如"转 10 USDC 给 0x...")触发链上交易,系统自动解析为 wallet send <chain> <token> <amount> <to> 命令结构。
关键特性:
- 双链支持:Solana(SPL 代币)与 Base(ERC-20 代币)
- 代币灵活性:内置 SOL、ETH、USDC 名称映射,同时接受任意合约/Mint 地址
- 结构化输出:强制
--json参数确保机器可解析的返回格式 - 余额预检:执行前自动调用
wallet balance验证资金充足性
显著优点
- 用户体验优化:自然语言到命令行的智能映射,降低区块链操作门槛
- 安全设计:多重确认机制(地址格式校验、链-地址匹配检查、余额+Gas 预检)
- 扩展性:通过
--rpc 参数支持自定义节点,满足高级用户需求
- 错误透明化:内置 6 类常见错误码的识别与引导修复
潜在局限
- 单点依赖:完全绑定 OpenAnt CLI 生态,无法脱离该工具独立运行
- 网络覆盖有限:仅支持 Solana/Base,未涵盖 Ethereum L1、Arbitrum 等主流链
- Gas 估算盲区:文档提示需预留 Gas,但未提供具体计算工具或动态估算
- 认证前置:必须完成
authenticate-openant 技能,增加首次使用摩擦
适合人群
- 需要高频小额转账的 Solana/Base 活跃用户
- 希望以对话方式管理多链资产的非技术用户
- 集成 OpenAnt 生态的 AI 助手开发者
常规风险
风险类别
具体表现
缓解措施
不可逆损失
地址输入错误导致资产永久丢失
强制完整地址展示+用户二次确认
跨链误转
Solana 地址与 EVM 地址混用
格式自动校验(0x开头 vs base58)
Gas 不足
全额转出导致交易失败
明确提醒保留 Gas 储备
合约风险
自定义代币地址可能是恶意合约
建议仅使用知名代币或用户自证地址
认证凭据泄露
Turnkey 凭证管理不当
依赖 OpenAnt 安全基础设施
--rpc 参数支持自定义节点,满足高级用户需求- 单点依赖:完全绑定 OpenAnt CLI 生态,无法脱离该工具独立运行
- 网络覆盖有限:仅支持 Solana/Base,未涵盖 Ethereum L1、Arbitrum 等主流链
- Gas 估算盲区:文档提示需预留 Gas,但未提供具体计算工具或动态估算
- 认证前置:必须完成
authenticate-openant技能,增加首次使用摩擦
适合人群
- 需要高频小额转账的 Solana/Base 活跃用户
- 希望以对话方式管理多链资产的非技术用户
- 集成 OpenAnt 生态的 AI 助手开发者
常规风险
风险类别
具体表现
缓解措施
不可逆损失
地址输入错误导致资产永久丢失
强制完整地址展示+用户二次确认
跨链误转
Solana 地址与 EVM 地址混用
格式自动校验(0x开头 vs base58)
Gas 不足
全额转出导致交易失败
明确提醒保留 Gas 储备
合约风险
自定义代币地址可能是恶意合约
建议仅使用知名代币或用户自证地址
认证凭据泄露
Turnkey 凭证管理不当
依赖 OpenAnt 安全基础设施
| 风险类别 | 具体表现 | 缓解措施 |
|---|---|---|
| 不可逆损失 | 地址输入错误导致资产永久丢失 | 强制完整地址展示+用户二次确认 |
| 跨链误转 | Solana 地址与 EVM 地址混用 | 格式自动校验(0x开头 vs base58) |
| Gas 不足 | 全额转出导致交易失败 | 明确提醒保留 Gas 储备 |
| 合约风险 | 自定义代币地址可能是恶意合约 | 建议仅使用知名代币或用户自证地址 |
| 认证凭据泄露 | Turnkey 凭证管理不当 | 依赖 OpenAnt 安全基础设施 |
技能正文
name: send-token
description: Transfer tokens on Solana or Base. Use when the user wants to send, transfer, or pay tokens. Supports native coins (SOL, ETH) and tokens (USDC) by name, plus arbitrary tokens by mint/contract address. Covers "send SOL", "transfer USDC", "send tokens", "pay someone", "send ETH on Base", "transfer to address".
user-invocable: true
disable-model-invocation: false
allowed-tools: ["Bash(npx @openant-ai/cli@latest wallet send )", "Bash(npx @openant-ai/cli@latest wallet balance)", "Bash(npx @openant-ai/cli@latest wallet addr*)", "Bash(npx @openant-ai/cli@latest status*)"]
Sending Tokens on OpenAnt
Use the npx @openant-ai/cli@latest CLI to transfer tokens on Solana or Base. Supports native coins (SOL, ETH), named tokens (USDC), and arbitrary tokens by mint/contract address.
Always append --json to every command for structured, parseable output.
Confirm Authentication and Balance
npx @openant-ai/cli@latest status --json
npx @openant-ai/cli@latest wallet balance --json
npx @openant-ai/cli@latest status --json
npx @openant-ai/cli@latest wallet balance --json
If not authenticated, refer to the authenticate-openant skill. If balance is insufficient, inform the user.
Command Syntax
npx @openant-ai/cli@latest wallet send <chain> <token> <amount> <to> [--json] [--rpc <url>]
Arguments
npx @openant-ai/cli@latest wallet send <chain> <token> <amount> <to> [--json] [--rpc <url>]
| Argument | Description |
|---|---|
chain |
Target chain: solana (or sol), base (or eth) |
token |
Token: sol, eth, usdc, or a mint/contract address |
amount |
Amount in display units (e.g. 10 = 10 USDC, 0.5 = 0.5 SOL) |
to |
Destination address (Solana pubkey or EVM 0x address) |
Options
Option
Description
--json
Machine-readable JSON output
--rpc <url>
Override the default RPC URL for the chain
Supported Chains and Tokens
Chain
Named tokens
Native coin
solana / sol
usdc, or any SPL mint address
sol
base / eth
usdc, or any ERC20 contract address
eth
| Option | Description |
|---|---|
--json |
Machine-readable JSON output |
--rpc <url> |
Override the default RPC URL for the chain |
| Chain | Named tokens | Native coin |
|---|---|---|
solana / sol |
usdc, or any SPL mint address |
sol |
base / eth |
usdc, or any ERC20 contract address |
eth |
For arbitrary tokens, pass the mint address (Solana) or contract address (Base) directly as the token argument.
Examples
Send native SOL
npx @openant-ai/cli@latest wallet send solana sol 1.5 7xKabc123... --json
# -> { "success": true, "data": { "chain": "solana", "txSignature": "5xYz..." } }
Send USDC on Solana
npx @openant-ai/cli@latest wallet send solana usdc 100 7xKabc123... --json
# -> { "success": true, "data": { "chain": "solana", "txSignature": "3aBc..." } }
Send ETH on Base
npx @openant-ai/cli@latest wallet send base eth 0.05 0xAbCdEf... --json
# -> { "success": true, "data": { "chain": "base", "txHash": "0x1a2b..." } }
Send USDC on Base
npx @openant-ai/cli@latest wallet send base usdc 50 0xAbCdEf... --json
# -> { "success": true, "data": { "chain": "base", "txHash": "0x9f8e..." } }
Send arbitrary SPL token by mint address
npx @openant-ai/cli@latest wallet send solana 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU 25 7xKabc123... --json
Send arbitrary ERC20 on Base by contract address
npx @openant-ai/cli@latest wallet send base 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 10 0xAbCdEf... --json
Natural Language Mapping
npx @openant-ai/cli@latest wallet send solana usdc 100 7xKabc123... --json
# -> { "success": true, "data": { "chain": "solana", "txSignature": "3aBc..." } }
npx @openant-ai/cli@latest wallet send base eth 0.05 0xAbCdEf... --json
# -> { "success": true, "data": { "chain": "base", "txHash": "0x1a2b..." } }
Send USDC on Base
npx @openant-ai/cli@latest wallet send base usdc 50 0xAbCdEf... --json
# -> { "success": true, "data": { "chain": "base", "txHash": "0x9f8e..." } }
Send arbitrary SPL token by mint address
npx @openant-ai/cli@latest wallet send solana 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU 25 7xKabc123... --json
Send arbitrary ERC20 on Base by contract address
npx @openant-ai/cli@latest wallet send base 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 10 0xAbCdEf... --json
Natural Language Mapping
npx @openant-ai/cli@latest wallet send base usdc 50 0xAbCdEf... --json
# -> { "success": true, "data": { "chain": "base", "txHash": "0x9f8e..." } }
npx @openant-ai/cli@latest wallet send solana 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU 25 7xKabc123... --json
Send arbitrary ERC20 on Base by contract address
npx @openant-ai/cli@latest wallet send base 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 10 0xAbCdEf... --json
Natural Language Mapping
npx @openant-ai/cli@latest wallet send base 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 10 0xAbCdEf... --json
When the user says something like:
- "帮我 base 上转 10 usdc 给 0xAbc..." →
wallet send base usdc 10 0xAbc... --json - "帮我 solana 上转 1.5 sol 给 7xK..." →
wallet send solana sol 1.5 7xK... --json - "Send 50 USDC to 0xDef... on Base" →
wallet send base usdc 50 0xDef... --json - "Transfer 0.1 ETH to 0x123..." →
wallet send base eth 0.1 0x123... --json - "帮我 solana 上转 10 <mint_address> 给 " →
wallet send solana <mint_address> 10 <recipient> --json
Extract: chain, token (name or address), amount, and destination address.
Autonomy
Token transfers are irreversible. Always confirm with the user before executing:
- Verify the chain, token, amount, and destination address with the user
- Check wallet balance first to ensure sufficient funds
- Only execute after explicit user confirmation
Read-only commands (status, wallet balance, wallet addresses) can be executed immediately.
NEVER
- NEVER send without the user explicitly confirming the destination address — blockchain transfers are irreversible. Show the full address and ask the user to verify it before executing.
- NEVER send Solana tokens to a Base address, or vice versa — the chains are incompatible. Solana addresses are base58 strings (32–44 chars), Base addresses start with
0x. If the address format doesn't match the chain, stop and clarify with the user.
- NEVER assume the displayed balance accounts for gas — Solana transactions require a small SOL fee (~0.000005 SOL); Base transactions require ETH for gas. If the user is sending their entire balance, leave a small reserve or the transaction will fail.
- NEVER infer the chain from the token alone — USDC exists on both Solana and Base. Always confirm which chain the user intends before sending.
- NEVER send to an address the user typed casually without double-checking — if the user typed the address in the middle of a sentence or abbreviated it, ask them to paste the full address again to confirm.
Prerequisites
- Must be authenticated (
npx @openant-ai/cli@latest status --json)
- Wallet must have sufficient balance for the transfer plus gas/fees
- For SPL token transfers, the sender must hold the token
Error Handling
- "No Turnkey credentials found" — Run
authenticate-openant skill first
- "Insufficient balance" / "Attempt to debit" — Wallet lacks funds; check
wallet balance
- "Unknown chain" — Supported:
sol, base, eth
- "No Base wallet found" / "No Solana wallet found" — Re-login to provision wallets
- "Cannot read decimals for mint" — Invalid or non-existent token mint address
- Transaction simulation failed — Check balance and recipient address validity
0x. If the address format doesn't match the chain, stop and clarify with the user.- Must be authenticated (
npx @openant-ai/cli@latest status --json) - Wallet must have sufficient balance for the transfer plus gas/fees
- For SPL token transfers, the sender must hold the token
Error Handling
- "No Turnkey credentials found" — Run
authenticate-openant skill first
- "Insufficient balance" / "Attempt to debit" — Wallet lacks funds; check
wallet balance
- "Unknown chain" — Supported:
sol, base, eth
- "No Base wallet found" / "No Solana wallet found" — Re-login to provision wallets
- "Cannot read decimals for mint" — Invalid or non-existent token mint address
- Transaction simulation failed — Check balance and recipient address validity
authenticate-openant skill firstwallet balancesol, base, eth正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。