get_balances
Read token balances for a managed GDEX wallet on a specified chain, optionally filtered to one token, so agents can check holdings before trading.
Instructions
Token balances of the managed GDEX wallet on one chain, optionally one token. [] means the backend reported no holdings; a failed read errors. Native balance: get_trading_funds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Encrypted session data, instead of sessionPrivateKey + apiKey | |
| chain | Yes | Chain identifier | |
| apiKey | No | GDEX API key (with sessionPrivateKey) | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| tokenAddress | No | Optional token filter | |
| walletAddress | No | Control wallet address (the GDEX userId), not the managed trading wallet | |
| sessionPrivateKey | No | Session private key from sign-in (with apiKey) |