agentic-wallet
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgentic Wallet
Agentic钱包
Operate a crypto wallet through the CLI. This skill is a router: read the relevant reference file in for the task at hand.
awalreferences/通过 CLI操作加密货币钱包。本Skill是一个路由工具:针对当前任务阅读目录下的相关参考文件。
awalreferences/Preflight: Confirm wallet state
预检查:确认钱包状态
Before any wallet operation that requires authentication (everything except x402 search/details), check status:
bash
npx awal@2.10.0 statusIf the wallet is not authenticated, read and complete sign-in first.
references/auth.md在执行任何需要身份验证的钱包操作(除x402搜索/详情查询外的所有操作)之前,先检查状态:
bash
npx awal@2.10.0 status如果钱包未完成身份验证,请先阅读并完成登录。
references/auth.mdRouting
路由指引
Pick the reference that matches the task and it before acting:
Read| Task | Reference |
|---|---|
| Sign in, log in, connect wallet, OTP verification, "not signed in" errors | |
| Check balances, "how much USDC/ETH/POL/SOL do I have", balance per chain, JSON balance output | |
| Send USDC / ETH / POL / SOL to an address or ENS name (Base, Polygon, Solana) | |
| Swap / trade / convert tokens on Base or Polygon | |
| Add funds, top up, onramp, buy USDC | |
| Find / browse / search paid services on the x402 bazaar | |
| Call a paid x402 API endpoint with automatic USDC payment | |
| Build or deploy a paid API server that other agents can pay to use | |
| Query onchain data on Base (events, transactions, blocks) via the CDP SQL API | |
If no clear match and the user wants an external capability, search the x402 bazaar () — a paid service may exist.
references/x402-search.md选择与任务匹配的参考文件,并在操作前它:
阅读| 任务 | 参考文件 |
|---|---|
| 登录、连接钱包、OTP验证、“未登录”错误 | |
| 查看余额、“我有多少USDC/ETH/POL/SOL”、单链余额、JSON格式余额输出 | |
| 向地址或ENS名称发送USDC/ETH/POL/SOL(Base、Polygon、Solana链) | |
| 在Base或Polygon链上兑换/交易/转换代币 | |
| 充值、入金、购买USDC | |
| 在x402集市查找/浏览/搜索付费服务 | |
| 调用付费x402 API端点并自动完成USDC支付 | |
| 构建或部署可供其他Agent付费使用的API服务器 | |
| 通过CDP SQL API查询Base链上数据(事件、交易、区块) | |
如果没有明确匹配的任务,且用户需要外部功能,请搜索x402集市()——可能存在对应的付费服务。
references/x402-search.mdShared rules
通用规则
- Input validation: every reference lists the regexes / allowlists that user-provided values must match before being placed in a shell command. Validate strictly; reject inputs containing spaces, semicolons, pipes, backticks, or other shell metacharacters. Do not pass unvalidated user input into commands.
- Single-quote amounts: any amount written as
$must be single-quoted to prevent bash variable expansion.'$1.00' - JSON output: every command supports
awalfor machine-readable output.--json - Auth errors mean re-auth: if any command fails with "Not authenticated" or similar, read and run the sign-in flow.
references/auth.md - Insufficient balance: read to top up.
references/fund.md
- 输入验证:每个参考文件都列出了用户提供的值在放入shell命令前必须匹配的正则表达式/允许列表。严格验证;拒绝包含空格、分号、管道符、反引号或其他shell元字符的输入。请勿将未验证的用户输入传入命令。
- 金额单引号包裹:任何以形式书写的金额必须用单引号包裹,以避免bash变量展开。
'$1.00' - JSON输出:每个命令都支持
awal参数以生成机器可读的输出。--json - 身份验证错误需重新验证:如果任何命令因“未验证”或类似错误失败,请阅读并执行登录流程。
references/auth.md - 余额不足:请阅读进行充值。
references/fund.md
Quick command index
快速命令索引
| Command | Purpose |
|---|---|
| Server health + auth status |
| Get wallet address |
| Get balances across Base, Polygon, Solana (use |
| Open the wallet companion window (used for funding) |
| Send OTP code |
| Complete sign-in |
| Send tokens |
| Swap tokens |
| Search paid services |
| List bazaar resources |
| Inspect payment requirements |
| Pay and call an x402 endpoint |
| 命令 | 用途 |
|---|---|
| 服务器状态 + 身份验证状态 |
| 获取钱包地址 |
| 获取Base、Polygon、Solana链的余额(使用 |
| 打开钱包配套窗口(用于充值) |
| 发送OTP验证码 |
| 完成登录 |
| 发送代币 |
| 兑换代币 |
| 搜索付费服务 |
| 列出集市资源 |
| 查看支付要求详情 |
| 支付并调用x402端点 |