skills.vishalvoidskills/vishalvoid
Technical & DevelopmentBeginner

balance

Query gas and token balances on Base, Polygon, and Solana.

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/coinbase/agentic-wallet-skills/blob/main/skills/agentic-wallet/references/balance.md --skill balance

Overview

What This Skill Does

Queries token balances (including USDC and native gas tokens) across multiple chains (Base, Polygon, Solana) in a single CLI command.

Application

When to use this Skill

Documentation

Show Skills.md file

Checking Wallet Balances

Use the npx awal@2.10.0 balance command to fetch token balances across chains. By default it returns balances for USDC + the native gas token on Base, Polygon, and Solana in a single call.

If the wallet is not authenticated, see references/auth.md. The CLI reads the address from the local wallet session — you do not pass an address argument.

Command Syntax

npx awal@2.10.0 balance [--chain <chain>] [--asset <asset>] [--json]

Options

Option Description
--chain <chain> Restrict output to one chain. One of base, base-sepolia, polygon, solana, solana-devnet. Default: all chains.
--asset <asset> Show only one asset across the queried chain(s). One of usdc, eth, pol, sol.
--json Emit machine-readable JSON instead of the human table.
-h, --help Print built-in help.

If both --chain and --asset are omitted, the command queries every supported mainnet chain (Base, Polygon, Solana) and every native asset on each.

Note on --asset: Although the CLI's invalid-asset error message implies a 0x contract address is accepted, passing one currently fails checksum validation (the CLI uppercases the address). In practice, only the symbolic values usdc, eth, pol, sol work. Stick to those.

Lines 1 - 25 of 251

Recommendations

Explore other random skills

All skillsMy patterns