# Balances, all layers · Elysium API · Femtos

> One address on HyperCore, HyperEVM and Elysium in one list, with totals per layer.

- Base URL: `https://api.femtos.xyz/v1` (REST) · `wss://api.femtos.xyz/v1/ws` (WebSocket) · MCP: `https://api.femtos.xyz/mcp`
- Auth: `Authorization: Bearer $FEMTOS_KEY`. Free key: https://femtos.xyz/accounts/ (browser), or with
  no browser: `GET https://femtos.xyz/accounts/agent/challenge`, solve its proof of work, then `POST https://femtos.xyz/accounts/agent/signup`
  (https://femtos.xyz/agents.md#agent-onboarding)
- Decimals are exact strings, times Unix milliseconds, addresses lowercase `0x`
- Whole API in one file: https://femtos.xyz/agents.md · OpenAPI: https://api.femtos.xyz/v1/openapi.json · Index: https://femtos.xyz/llms.txt
- Page with live calls: https://femtos.xyz/elysium/balances-all

## Balances, all layers — GET `/v1/balances/{address}`

One address on HyperCore, HyperEVM and Elysium in one list, with totals per layer.

| Param | In | Example or values | Meaning |
|---|---|---|---|
| `address` | path | `<creator>` | 0x address, or a named wallet's handle `<entityId>.<hex>` |
| `layer` | query | `all` | Layer(s) read |
| `minUsd` | query | `1` | Leave out holdings worth less (and unpriced ones) |
| `includeSpam` | query | `(empty)`, `true` | List spam tokens (flagged spam / spamReason); never in the totals |

```bash
curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/balances/<creator>?layer=all&minUsd=1"
```

| Field | Type | Meaning |
|---|---|---|
| `balances[]` | object | Holdings, largest USD first (sort=amount: largest amount); spam left out unless includeSpam: {layer, kind, asset, symbol, name, decimals, raw, amount, priceUsd, priceSource, usd, spam, …} |
| `totalUsd` | decimal \| null | USD of every holding (spam never counts; tokens= narrows it, minUsd and limit do not) + HyperCore perp account values; Elysium testnet not valued; null on a past read |
| `totalUsdComplete` | boolean | Every holding had a price and every layer asked answered |
| `layers.<layer>` | object | Per layer asked: source, height, asOf (provenance), usd, count, verify: {source, height, asOf, network, chainId, testnet, syncing, dataUntil, requested, usd, usdComplete, count, …} |
| `perp` | object \| null | HyperCore perp accounts (layer hypercore / all): kept apart from the token rows; null with tokens= or a past read: {dex, collateral, accountValue, withdrawable, totalMarginUsed, totalNtlPos, positions, usd, dexes, totalUsd, abstraction, inSpot} |

## Related (Balances)

- [Balances](https://femtos.xyz/elysium/balances.md): Every token an address holds on Elysium, with USD value and the block it is read at.
- [Token balance](https://femtos.xyz/elysium/token-balance.md): One token of one address on Elysium: 0 when not held, now or at a past block.
- [Batch balances](https://femtos.xyz/elysium/batch-balances.md): Up to 100 addresses on Elysium in one call, the same answer for each.

All Elysium endpoints: https://femtos.xyz/elysium.md
