Query Tokens
Query CW20 token information without submitting transactions.Commands
| Command | Description |
|---|---|
xyz token balance | Check balance for an address |
xyz token info | View token metadata |
xyz token list | List all tokens you hold |
Token Balance
Check the token balance of any address:Example
JSON Output
Token Info
View token metadata and supply:Example
JSON Output
Token List
List all CW20 tokens you hold:Example
Token list queries the contracts configured in
cw20-tokens. Add tokens with:JSON Output
Raw Contract Queries
For advanced queries, usexyz program query:
Balance Query
Token Info Query
Minter Query
All Accounts Query
Scripting Examples
Check Balance Threshold
Export Holdings to CSV
Monitor Supply Changes
Troubleshooting
Contract not found
Contract not found
Verify the contract address:
No tokens in list
No tokens in list
Add tokens to track:
Connection error
Connection error
Check node is running: