Development v2.0.2

check-balance

Check USDC balance across networks (Base, Solana). Use when the user wants to check balance, see how much USDC is...

agnicpay 更新于 2026-04-23 1 浏览
下载 SKILL

技能说明

Check USDC balance across networks (Base, Solana). Use when the user wants to check balance, see how much USDC is available, view funds, or verify wallet balance. Covers "check my balance", "how much do I have", "show funds", "wallet balance".

使用场景

Use npx agnic@latest balance to check USDC balance across supported networks.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/check-balance
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 23 kB
SKILL.md text/markdown
---
name: check-balance
description: >
  Check USDC balance across networks (Base, Solana). Use when the user
  wants to check balance, see how much USDC is available, view funds,
  or verify wallet balance. Covers "check my balance", "how much do I have",
  "show funds", "wallet balance".
user-invocable: true
disable-model-invocation: false
allowed-tools:
  - "Bash(npx agnic@latest status*)"
  - "Bash(npx agnic@latest balance*)"
---

# Checking USDC Balance

Use `npx agnic@latest balance` to check USDC balance across supported networks.

## Authentication

Run `npx agnic@latest status --json` to verify. If not authenticated:
- **Headless (CI/server/agent)**: Set `AGNIC_TOKEN` env var or pass `--token <token>`
- **Interactive (has browser)**: Run `npx agnic@latest auth login`

See the `authenticate-wallet` skill for details.

## Command Syntax

```bash
npx agnic@latest balance [--network <network>] [--json]
```

## Options

| Option             | Description                               |
| ------------------ | ----------------------------------------- |
| `--network <name>` | Filter by network (default: all networks) |
| `--json`           | Output result as JSON                     |

## Supported Networks

| Network         | Description            |
| --------------- | ---------------------- |
| `base`          | Base mainnet (primary) |
| `base-sepolia`  | Base testnet           |
| `solana`        | Solana mainnet         |
| `solana-devnet` | Solana devnet          |

## Examples

```bash
# Check balance on all networks
npx agnic@latest balance --json

# Check balance on Base mainnet only
npx agnic@latest balance --network base --json
```

## Expected Output

```
Network       Balance      Address
base          125.50 USDC  0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7
base-sepolia    0.00 USDC  0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7
solana          0.00 USDC  N/A
solana-devnet   0.00 USDC  N/A
```

## Error Handling

Common errors:

- "Not authenticated" -- Run `npx agnic@latest auth login` or set `AGNIC_TOKEN`
- Network timeout -- Try again or specify a single network with `--network base`

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。