Balances
ETH and token balances of any wallet.
GEThttps://api.trenchytools.lol/api/rh/balances
| Field | Type | Description |
|---|---|---|
| wallet | string | Any 0x address. |
| tokens | string | Comma-separated token addresses. |
| wallets | string | Comma-separated 0x addresses (≤ 100): ETH balance for many wallets in one call. Answer: { wallets: [{ wallet, eth }] }. |
cURL
curl "https://api.trenchytools.lol/api/rh/balances?wallet=0xYOU&tokens=TOKEN_ADDRESS&api-key=YOUR_API_KEY"
Response
{ "wallet": "0x…", "eth": "0.0683", "tokens": [ { "token": "0x…", "balance": "1889822.68" } ] }