check-balance

📁 agnicpay/agnic-wallet-skills 📅 4 days ago
3
总安装量
3
周安装量
#57613
全站排名
安装命令
npx skills add https://github.com/agnicpay/agnic-wallet-skills --skill check-balance

Agent 安装分布

opencode 3
antigravity 3
github-copilot 3
codex 3
kimi-cli 3
gemini-cli 3

Skill 文档

Check Balance

Check the user’s USDC balance across supported networks.

Steps

  1. Verify authentication:

    npx agnic@latest status --json
    

    If not authenticated, run npx agnic@latest auth login first.

  2. Check balance for all networks:

    npx agnic@latest balance --json
    
  3. Or check a specific network:

    npx agnic@latest balance --network base --json
    npx agnic@latest balance --network solana --json
    

Expected Output

[
  { "network": "base", "balance": "125.50", "address": "0x..." },
  { "network": "solana", "balance": "0", "address": "N/A" }
]

Supported Networks

  • base — Base mainnet (EVM, primary)
  • solana — Solana mainnet
  • base-sepolia — Base testnet
  • solana-devnet — Solana devnet

Error Handling

  • If not authenticated: prompt user to run npx agnic@latest auth login
  • If a network returns an error, report it and show available balances