> For the complete documentation index, see [llms.txt](https://docs-unified.crypto-chief.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-unified.crypto-chief.com/getting-started/partial-responses.md). Agents can also search and read this documentation through its [MCP server](https://docs-unified.crypto-chief.com/~gitbook/mcp).

# Partial Responses

## Partial Responses

A request that reads several networks, or a batch of address–network pairs, gets an answer for each of them. One network that is down or does not offer the operation does not fail the others.

### How a request is answered

1. **Before anything runs**, the key, the project's access and the request schema are checked. Problems there are answered at once with a `4xx`: `400`, `401`, `402`, `403`.
2. **A valid request** answers `200` when at least one network or batch item was served. Each network has its own entry in `networks[]`; each batch item has its own `status`.
3. **When nothing was served**, the whole request fails with one code:
   * every address is invalid on every requested network — `400 INVALID_ADDRESS`;
   * no requested network offers the operation — `422 UNSUPPORTED_CAPABILITY`;
   * every network failed temporarily — `503 UPSTREAM_UNAVAILABLE` with `Retry-After`.
4. **A failure on the API's side** is `500 INTERNAL`. It is not temporary; report it with the `request_id`.

### `networks[]`

```json
"networks": [
  { "network": "ETH_MAINNET", "status": "ok", "source": "index", "consistency": "block", "as_of_block": { "height": "23950112", "hash": "0x5c1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a" } },
  { "network": "TRON_MAINNET", "status": "ok", "source": "native", "consistency": "observed", "observed_at": "2026-11-29T10:00:01.120Z" },
  { "network": "BSC_MAINNET", "status": "error", "error": "UPSTREAM_UNAVAILABLE", "retry_after": 5 },
  { "network": "AVAX_MAINNET", "status": "unsupported", "error": "UNSUPPORTED_CAPABILITY" }
]
```

| Field         | Meaning                                                                                                                                                           |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `status`      | `ok` — served; `error` — failed, `error` holds the code; `unsupported` — the network does not offer this operation                                                |
| `source`      | Where the data came from: `index` — a history index; `native` — the network's own node or indexer; `rpc_window` — a window of recent blocks read from the network |
| `consistency` | `block` — the data was read at one block, given in `as_of_block`; `observed` — the source does not report a block, `observed_at` is when it was read              |
| `as_of_block` | `{height, hash}` of the block the data was read at                                                                                                                |
| `observed_at` | Time of the read                                                                                                                                                  |
| `error`       | Error code, for `error` and `unsupported`                                                                                                                         |
| `retry_after` | Seconds to wait before reading this network again                                                                                                                 |

An item of a network that answered `error` is not in `items`: absent does not mean zero. For a balance, treat that network as unknown, not empty; [`complete`](https://docs-unified.crypto-chief.com/getting-started/amounts-and-money.md#portfolio-totals) is `false` in that case.

`source` names a kind of source, never a vendor. A change of data source does not change the contract.

### Batch items

[`POST /v1/addresses/balances`](https://docs-unified.crypto-chief.com/api-reference/balances.md#batch-balances) returns one item per request item, in request order, each with the same fields: `status`, `error`, `retry_after`, `source`, `consistency`, `as_of_block` or `observed_at`.

### Retrying

Retry only what failed: the networks with `status: "error"`, the batch items with `status: "error"`, honouring `retry_after`. An `unsupported` network does not change on retry. [Errors](https://docs-unified.crypto-chief.com/getting-started/errors.md#retrying) lists which whole-request errors a retry can fix.

### Billing

Networks and batch items that ended in `status: "error"` are refunded; a whole request that failed with `503` is refunded in full. See [Billing](https://docs-unified.crypto-chief.com/getting-started/billing.md).
