Treasury or wallet balances (native + ERC20, USD)
dexe_read_treasuryReads treasury or wallet balances for any address, including GovPool DAOs, auto-discovers tokens with USD prices and totals, and falls back to on-chain reads.
Instructions
Read-only. Treasury / wallet balances for any address; pass a GovPool address for a DAO treasury. Auto-discovers EVERY token via the DeXe backend with USD prices and a total. Falls back to an on-chain read (chain 97, explicit tokens, or a backend failure) — no token discovery there, and it reports degraded: true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dexe_read_treasury"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holder | No | Address whose balances we read (a GovPool for a DAO treasury) | |
| tokens | No | Optional explicit ERC20 addresses (at most 50); forces on-chain RPC read of just these | |
| chainId | No | Chain to read from: 56 mainnet, 97 testnet. Needs an RPC for it. Default: the configured chain. | |
| govPool | No | Alias for `holder` — every other DAO read names the DAO this way |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holder | Yes | ||
| native | Yes | ||
| source | Yes | ||
| tokens | Yes | ||
| chainId | Yes | ||
| degraded | Yes | ||
| totalUsd | Yes | ||
| nativeFormatted | No |