agentic-wallet
它能做什么
这项技能让智能体通过 awal 命令行工具操作加密钱包。它涵盖登录、查询余额、转账、交易代币、充值以及为在线服务付款。
适用场景
- ✓当你想查看你的钱包持有多少 USDC、ETH 或其他币种的时候。
- ✓当你希望把加密货币发送到某个地址或 ENS 名称时。
- ✓当你想从钱包中查找或支付 x402 服务费用的时候。
技能链接
https://github.com/internet-court/internet-court-skill/blob/main/vendored/coinbase/agentic-wallet/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想查看我的加密钱包余额,并向朋友的地址发送 10 USDC。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先检查钱包是否已登录,如未登录则协助你登录。然后它会阅读与你任务对应的参考资料,例如余额、转账、交易或充值,并以固定的工具版本运行 awal 命令。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agentic Wallet
Operate a crypto wallet through the awal CLI. This skill is a router: read the relevant reference file in references/ for the task at hand.
Preflight: Confirm wallet state
Before any wallet operation that requires authentication (everything except x402 search/details), check status:
npx awal@2.12.1 status
If the wallet is not authenticated, read references/auth.md and complete sign-in first.
Routing
Pick the reference that matches the task and Read it before acting:
| Task | Reference |
|---|---|
| Sign in, log in, connect wallet, OTP verification, "not signed in" errors | references/auth.md |
| Check balances, "how much USDC/ETH/POL/SOL do I have", balance per chain, JSON balance output | references/balance.md |
| Send USDC / ETH / POL / SOL to an address or ENS name (Base, Polygon, Solana) | references/send-usdc.md |
| Swap / trade / convert tokens on Base or Polygon | references/trade.md |
| Add funds, top up, onramp, buy USDC | references/fund.md |
| Find / browse / search paid services on the x402 bazaar | references/x402-search.md |
| Call a paid x402 API endpoint with automatic USDC payment | references/x402-pay.md |
| Build or deploy a paid API server that other agents can pay to use | references/x402-monetize.md |
| Query onchain data on Base (events, transactions, blocks) via the CDP SQL API | references/query-onchain.md |
If no clear match and the user wants an external capability, search the x402 bazaar (references/x402-search.md) — a paid service may exist.
Shared 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'$1.00'must be single-quoted to prevent bash variable expansion. - JSON output: every
awalcommand supports--jsonfor machine-readable output. - Auth errors mean re-auth: if any command fails with "Not authenticated" or similar, read
references/auth.mdand run the sign-in flow. - Insufficient balance: read
references/fund.mdto top up.
Quick command index
| Command | Purpose |
|---|---|
npx awal@2.12.1 status |
Server health + auth status |
npx awal@2.12.1 address |
Get wallet address |
npx awal@2.12.1 balance |
Get balances across Base, Polygon, Solana (use --chain for one chain) |
npx awal@2.12.1 show |
Open the wallet companion window (used for funding) |
npx awal@2.12.1 auth login <email> |
Send OTP code |
npx awal@2.12.1 auth verify <otp> |
Complete sign-in |
npx awal@2.12.1 auth logout |
Sign out and clear the session |
npx awal@2.12.1 send <amount> <recipient> |
Send tokens |
npx awal@2.12.1 trade <amount> <from> <to> |
Swap tokens |
npx awal@2.12.1 x402 bazaar search <query> |
Search paid services |
npx awal@2.12.1 x402 bazaar list |
List bazaar resources |
npx awal@2.12.1 x402 details <url> |
Inspect payment requirements |
npx awal@2.12.1 x402 pay <url> |
Pay and call an x402 endpoint |
常见问题
智能体需要先登录吗?
大多数钱包操作需要。该技能会先检查状态,如果钱包未连接,则引导你完成登录。
它支持哪些网络?
转账支持 Base、Polygon 和 Solana。交易支持 Base 或 Polygon。
它能使用 x402 付款系统吗?
可以。它可以查找付费服务,并用 USDC 支付 API 调用的费用。
详情
作者的原始描述
Crypto wallet operations via the awal CLI — sign in, check balances, send USDC/ETH/POL/SOL, trade tokens, fund the wallet, and use the x402 payment protocol to discover paid services, pay for API calls, monetize an API, or query onchain data. Use whenever the user mentions signing in, login, authentication, wallet status, balance, address, sending money, paying someone, transferring tokens, ENS names, swapping/trading/converting tokens, funding/topping up/onramp, USDC, ETH, POL, SOL, the x402 bazaar, paid APIs, monetizing an endpoint, or querying onchain data on Base.
热度
- GitHub 星标
- 7.0k
- 排名
- #13624
- 许可证
- —
- 更新时间
- 2026/10/26
评论
- …
同一仓库的更多技能
internet-court
7.0k帮你的智能体安全地向其他 AI 智能体或付费服务付款、雇用或进行交易,并指引它找到合适的专业指南。
genlayer-erc7710-connector
7.0k帮你的智能体把 AI 审核结果与权限系统连接起来,使不合格的审核可以限制或取消智能体的权限。
genlayer-intelligent-contracts
7.0k帮你的智能体定义 AI 裁判的规则、证据和输出,用于检查另一个智能体是否遵循了其授权范围。
x402-erc7710
7.0k帮你的智能体按次为网络服务付款,并设置在权限预算范围内的持续支出。