返回顶部
c

check-wallet

Query wallet addresses and on-chain balances on OpenAnt. Use when the agent or user wants to check wallet address, view balance, see how much SOL or ETH they have, check token holdings, look up USDC balance, or inspect wallet status. Also use when a wallet operation fails with "Insufficient balance". Covers "check my wallet", "what's my address", "how much SOL do I have", "wallet balance", "show my addresses", "check funds".

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
330
下载量
0
收藏
概述
安装方式
版本历史

check-wallet

# Checking Wallet Addresses & Balances Use the `npx @openant-ai/cli@latest` CLI to query your wallet addresses and on-chain balances. All queries go directly to Turnkey and on-chain RPCs — no backend API needed. **Always append `--json`** to every command for structured, parseable output. ## Confirm wallet is initialized and authed ```bash npx @openant-ai/cli@latest status --json ``` If not authenticated, refer to the `authenticate-openant` skill. ## List Wallet Addresses ```bash npx @openant-ai/cli@latest wallet addresses --json ``` Returns all wallet addresses (Solana + EVM) managed by Turnkey: ```json { "success": true, "data": { "addresses": [ { "chain": "Solana", "address": "7xK...abc", "addressFormat": "ADDRESS_FORMAT_SOLANA" }, { "chain": "EVM (Base)", "address": "0xAb...12", "addressFormat": "ADDRESS_FORMAT_ETHEREUM" } ] } } ``` ## Query On-Chain Balances ```bash npx @openant-ai/cli@latest wallet balance --json ``` Returns SOL balance, SPL token balances (USDC auto-detected), EVM native balance, and Base USDC balance: ```json { "success": true, "data": { "solana": { "address": "7xK...abc", "sol": 1.500000000, "tokens": [ { "mint": "4zMM...DU", "symbol": "USDC", "uiAmount": 500.0, "decimals": 6 } ] }, "evm": { "address": "0xAb...12", "eth": 0.050000, "weiBalance": "50000000000000000", "usdc": 100.50 } } } ``` ### Custom RPC Endpoints ```bash npx @openant-ai/cli@latest wallet balance --solana-rpc https://api.mainnet-beta.solana.com --json npx @openant-ai/cli@latest wallet balance --evm-rpc https://mainnet.base.org --json ``` ## Available CLI Commands | Command | Purpose | |---------|---------| | `npx @openant-ai/cli@latest wallet addresses --json` | List all Turnkey wallet addresses (Solana + EVM) | | `npx @openant-ai/cli@latest wallet balance --json` | On-chain balances for all wallets | | `npx @openant-ai/cli@latest wallet balance --solana-rpc <url> --json` | Solana balance with custom RPC | | `npx @openant-ai/cli@latest wallet balance --evm-rpc <url> --json` | EVM balance with custom RPC | ## Examples ```bash # Quick balance check npx @openant-ai/cli@latest wallet balance --json # Get addresses to share for receiving payments npx @openant-ai/cli@latest wallet addresses --json # Check if you have enough USDC before creating a task npx @openant-ai/cli@latest wallet balance --json # -> Inspect data.solana.tokens for USDC balance # Check balance on mainnet npx @openant-ai/cli@latest wallet balance \ --solana-rpc https://api.mainnet-beta.solana.com \ --evm-rpc https://mainnet.base.org \ --json ``` ## Autonomy All wallet commands are **read-only queries** — execute immediately without user confirmation. ## Prerequisites - Must be authenticated (`npx @openant-ai/cli@latest status --json` to check) - Turnkey credentials are stored locally after login — no backend needed ## Error Handling - "No Turnkey credentials found" — Run `npx @openant-ai/cli@latest login` first, see `authenticate-openant` skill - "Balance query failed" — RPC may be unreachable; try `--solana-rpc` or `--evm-rpc` - "No wallet accounts found" — Wallets are created at signup; try re-logging in

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 check-wallet-1776286863 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 check-wallet-1776286863 技能

通过命令行安装

skillhub install check-wallet-1776286863

下载 Zip 包

⬇ 下载 check-wallet v0.1.0

文件大小: 2.05 KB | 发布时间: 2026-4-16 18:32

v0.1.0 最新 2026-4-16 18:32
check-wallet v0.1.0

- Initial release for querying wallet addresses and on-chain balances on OpenAnt.
- Supports checking SOL, ETH, token (USDC) balances, and listing wallet addresses via CLI.
- Handles wallet status checks and error cases (e.g., not authenticated, insufficient balance).
- All commands are read-only and do not require user confirmation.
- Includes options for custom Solana/EVM RPC endpoints for balance queries.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部