Balances
SOL and token balances of one wallet, or of up to 100 wallets in one call.
GEThttps://api.trenchytools.lol/api/sol/balances
One wallet
| Field | Type | Description |
|---|---|---|
| wallet | string | Any Solana address. |
| mints | string | Comma-separated coin addresses. Leave out to list every non-zero token (slow for wallets with thousands of tokens). |
| includeEmpty | "true" | Also list token accounts holding 0, e.g. to close them and get the rent back. |
cURL
curl "https://api.trenchytools.lol/api/sol/balances?wallet=WALLET&mints=MINT_ADDRESS&api-key=YOUR_API_KEY"
Response
{ "wallet": "…", "sol": 1.25, "tokens": [ { "mint": "…", "balance": 291577.94, "raw": "291577940000", "account": "…", "program": "TokenzQd…" } ] }
Many wallets
A bundler checking its dev, bundle and holder wallets: pass wallets instead of wallet and get every SOL balance (and one coin's balance with mint) in a single request.
| Field | Type | Description |
|---|---|---|
| wallets | string | Up to 100 comma-separated addresses. |
| mint | string | One coin address: each row then carries that coin's balance too. |
cURL
curl "https://api.trenchytools.lol/api/sol/balances?wallets=WALLET_1,WALLET_2,WALLET_3&mint=MINT_ADDRESS&api-key=YOUR_API_KEY"
Response
{ "wallets": [ { "wallet": "…", "sol": 0.52, "token": { "mint": "…", "balance": 1200000, "raw": "1200000000000", "account": "…", "program": "TokenzQd…" } } ] }