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.0 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.0 statusServer health + auth status
npx awal@2.12.0 addressGet wallet address
npx awal@2.12.0 balanceGet balances across Base, Polygon, Solana (use --chain for one chain)
npx awal@2.12.0 showOpen the wallet companion window (used for funding)
npx awal@2.12.0 auth login <email>Send OTP code
npx awal@2.12.0 auth verify <otp>Complete sign-in
npx awal@2.12.0 send <amount> <recipient>Send tokens
npx awal@2.12.0 trade <amount> <from> <to>Swap tokens
npx awal@2.12.0 x402 bazaar search <query>Search paid services
npx awal@2.12.0 x402 bazaar listList bazaar resources
npx awal@2.12.0 x402 details <url>Inspect payment requirements
npx awal@2.12.0 x402 pay <url>Pay and call an x402 endpoint

來自 coinbase 的更多技能

git.repo-manager
coinbase
git.repo-manager — 一個可安裝的AI代理技能,由coinbase/cds發布。
official
cds-accessibility
coinbase
審查已撰寫的 Coinbase Design System (CDS) UI 的可及性:驗證文件中記載的可及性屬性(例如 accessibilityLabel,…)
official
cds-migrator-transform
coinbase
當 **cds-web**、**cds-common**、**cds-mobile**、**web-visualization** 或 **mobile-visualization** 中的 CDS 變更需要進行 **jscodeshift** 遷移時使用…
official
query-blockchain-data
coinbase
透過 CDP SQL API 與 x402 查詢 Base 上的鏈上區塊鏈數據。當您或用戶想查看關於已解碼區塊的鏈上資訊時使用…
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 天。資金以 Base 網路上的 USDC 存入;用戶亦可透過 npx awal@2.0.3... 直接將 USDC 發送至錢包地址。
official
monetize-service
coinbase
部署一個付費API端點,其他代理可透過x402協議發現並付費使用。基於HTTP 402支付協議,在Base鏈上按請求收取USDC;客戶端使用簽名交易支付,無需API金鑰或帳戶。當您聲明發現擴展時,自動將端點註冊至x402 Bazaar供代理發現。支援多種定價層級、萬用路由,以及透過Express中介軟體為每個端點設定多種支付選項。基於@x402/express和@x402/core建置...
official
pay-for-service
coinbase
在Base上透過x402協議自動以USDC支付來呼叫付費API。執行HTTP請求(GET、POST等)至支援x402的端點,自動處理原子化USDC支付。支援透過方法、JSON主體、查詢參數及自訂標頭進行請求自訂。包含支付控制:設定每次請求的最大USDC金額,並使用關聯ID分組相關操作。需要錢包驗證及足夠的USDC餘額;驗證所有使用者輸入以防止shell...
official