agentic-wallet

作者: coinbase

通过awal CLI进行加密钱包操作——登录、查看余额、发送USDC/ETH/POL/SOL、交易代币、为钱包充值,以及使用x402支付协议来…

npx skills add https://github.com/coinbase/agentic-wallet-skills --skill agentic-wallet

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:

TaskReference
Sign in, log in, connect wallet, OTP verification, "not signed in" errorsreferences/auth.md
Check balances, "how much USDC/ETH/POL/SOL do I have", balance per chain, JSON balance outputreferences/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 Polygonreferences/trade.md
Add funds, top up, onramp, buy USDCreferences/fund.md
Find / browse / search paid services on the x402 bazaarreferences/x402-search.md
Call a paid x402 API endpoint with automatic USDC paymentreferences/x402-pay.md
Build or deploy a paid API server that other agents can pay to usereferences/x402-monetize.md
Query onchain data on Base (events, transactions, blocks) via the CDP SQL APIreferences/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 awal command supports --json for machine-readable output.
  • Auth errors mean re-auth: if any command fails with "Not authenticated" or similar, read references/auth.md and run the sign-in flow.
  • Insufficient balance: read references/fund.md to top up.

Quick command index

CommandPurpose
npx awal@2.12.1 statusServer health + auth status
npx awal@2.12.1 addressGet wallet address
npx awal@2.12.1 balanceGet balances across Base, Polygon, Solana (use --chain for one chain)
npx awal@2.12.1 showOpen 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 logoutSign 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 listList 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

来自 coinbase 的更多技能

git.repo-manager
coinbase
git.repo-manager — 一个可安装的AI代理技能,由coinbase/cds发布。
official
authenticate-wallet
coinbase
基于邮箱OTP的钱包认证,包含验证与状态检查。两步登录流程:通过邮箱发起请求获取6位数字OTP,随后使用flowId和验证码完成认证。在执行命令前,对邮箱、flowId和OTP进行输入验证规则检查,防止shell注入。提供状态检查、余额查询、地址获取及通过配套CLI命令访问钱包窗口。所有命令支持--json输出,便于机器读取...
official
fund
coinbase
通过Coinbase Onramp或直接转账将USDC存入钱包。打开配套界面,用户可选择预设金额(10美元、20美元、50美元)或自定义数值,并选择Apple Pay、借记卡、银行转账或Coinbase账户充值。支持多种支付方式,结算时间不同:卡和Apple Pay即时到账,ACH银行转账需1-3天。资金以USDC形式存入Base网络;用户也可通过npx awal@2.0.3...直接将USDC发送至钱包地址。
official
monetize-service
coinbase
部署一个付费API端点,其他代理可通过x402协议发现并支付。基于Base网络使用HTTP 402支付协议按请求收取USDC;客户端通过签名交易支付,无需API密钥或账户。声明发现扩展后自动将端点注册到x402 Bazaar供代理发现。支持多种定价层级、通配符路由及每个端点多个支付选项,使用Express中间件实现。基于@x402/express和@x402/core构建...
official
pay-for-service
coinbase
通过x402协议在Base上调用付费API,自动完成USDC支付。执行HTTP请求(GET、POST等)到支持x402的端点,自动处理原子级USDC支付。支持通过方法、JSON体、查询参数和自定义标头定制请求。包含支付控制:设置每次请求的最大USDC金额,并通过关联ID对相关操作进行分组。需要钱包认证和足够的USDC余额;验证所有用户输入以防止shell...
official
query-blockchain-data
coinbase
通过x402使用CDP SQL API查询Base上的链上区块链数据。当你或你的用户想要查看关于已解码区块的链上信息时使用…
official
query-onchain-data
coinbase
使用SQL在Base上查询链上数据,每次查询通过x402支付。通过CoinbaseQL(基于ClickHouse的SQL方言,支持连接、CTE、子查询和标准函数)访问解码后的事件、交易和区块。提供三个主要表:base.events(解码的智能合约日志)、base.transactions(完整交易数据)和base.blocks(区块元数据)。在事件查询中需对索引字段(event_signature、address、block_timestamp)进行过滤,以避免全表扫描...
official
search-for-service
coinbase
搜索并发现x402集市市场上可用的付费API服务。通过BM25相关性搜索查询市场,列出所有可用资源,或检查特定端点以查看定价和支付要求(无需付费)。支持按网络(base、base-sepolia)和输出格式(人类可读或JSON)进行过滤。结果本地缓存,每12小时自动刷新;所有搜索或发现操作无需认证。当无其他可用选项时作为备用方案使用。
official