> For the complete documentation index, see [llms.txt](https://docs.liqd.ag/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.liqd.ag/liquidswap-integration/token-balances.md).

# Token Balances

Returns token balances for a wallet on a given chain.

**Endpoint:** `GET https://api.liqd.ag/tokens/balances`

**Authentication**: None required — publicly accessible

**Rate Limits**: No rate limits

### Required Parameters

| Name      | Type    | Description                                                 | Required | Example                                      |
| --------- | ------- | ----------------------------------------------------------- | -------- | -------------------------------------------- |
| `wallet`  | address | Wallet to check balances for                                | Yes      | `0x1234567890abcdef1234567890abcdef12345678` |
| `chainId` | number  | Chain to query (`999` = HyperEVM, `4663` = Robinhood Chain) | Yes      | `999`                                        |

### Optional Parameters

| Name    | Type   | Description                        | Default |
| ------- | ------ | ---------------------------------- | ------- |
| `limit` | number | Maximum number of tokens to return | none    |

**Parameter Details:**

* **wallet**: Valid Ethereum-style address (`0x` + 40 hex characters)
* **chainId**: `999` for HyperEVM, `4663` for Robinhood Chain
* **limit**: Useful for top holdings; if omitted, returns all tokens with non-zero balances

**Example Requests:**

```
GET https://api.liqd.ag/tokens/balances?wallet=0x1234567890abcdef1234567890abcdef12345678&chainId=999
GET https://api.liqd.ag/tokens/balances?wallet=0x1234567890abcdef1234567890abcdef12345678&chainId=4663
GET https://api.liqd.ag/tokens/balances?wallet=0x1234567890abcdef1234567890abcdef12345678&chainId=999&limit=10
```

### Response Fields

| Field                                        | Description                   |
| -------------------------------------------- | ----------------------------- |
| `success`                                    | Whether the request succeeded |
| `data.wallet`                                | Wallet that was queried       |
| `data.chainId`                               | Chain that was queried        |
| `data.tokens[]`                              | Non-zero balances             |
| `data.tokens[].token`                        | Token address                 |
| `data.tokens[].balance`                      | Balance in base units         |
| `data.tokens[].name` / `symbol` / `decimals` | Token metadata                |
| `data.count`                                 | Total balances available      |
| `data.limitedCount`                          | Number returned               |
| `data.limitApplied`                          | Whether `limit` was applied   |
| `data.serviceStatus`                         | Indexer status                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.liqd.ag/liquidswap-integration/token-balances.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
