TrenchyToolsAPI

Balances

SOL and token balances of one wallet, or of up to 100 wallets in one call.

Also on Robinhood chain
GEThttps://api.trenchytools.lol/api/sol/balances

One wallet

FieldTypeDescription
walletstringAny Solana address.
mintsstringComma-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.

FieldTypeDescription
walletsstringUp to 100 comma-separated addresses.
mintstringOne 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…" } } ] }