> For the complete documentation index, see [llms.txt](https://docs.kaiko.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kaiko.com/rest-api/onchain-data/wallets/balances.md). Agents can also search and read this documentation through its [MCP server](https://docs.kaiko.com/~gitbook/mcp).

# Balances

{% hint style="info" %}

### This data is included in the following Kaiko packages:

* Kaiko Blockchain Monitoring
  {% endhint %}

## What is this endpoint for?

> Wallet balances give the amount of every asset a wallet holds on a blockchain, the native coin and each token, with its value in US dollars. Read a wallet's current holdings, its holdings at any past time or block, or the full history of its balance changes. Up to 200 wallets per request on Bitcoin, Bitcoin Cash, Litecoin, Ethereum and Solana.

```json
{"openapi":"3.1.1","info":{"title":"Kaiko API","version":"2026-10-01"},"tags":[{"name":"Balances","description":"Balances of the wallets of a blockchain: latest, as of a point in time, or over a window."}],"servers":[{"url":"https://api.kaiko.io","description":"Production"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Your Kaiko API key. Sent on every request. Never in a query parameter.\n"}},"parameters":{"BlockchainQuery":{"name":"blockchain","in":"query","required":true,"description":"Kaiko blockchain code. An unknown chain is a 404 `unsupported_blockchain`.","schema":{"type":"string","pattern":"^[a-z0-9_]+$"}},"BalanceAddressesQuery":{"name":"addresses","in":"query","required":true,"description":"The wallets to read, comma-separated, up to 200. An address the chain cannot hold returns 400; an EVM address matches in any letter case. On bitcoincash a legacy address is accepted, and rows carry the cashaddr form the chain stores; on litecoin a `3...` address comes back in its `M...` form, and a bech32 address in lowercase.","style":"form","explode":false,"schema":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"string","pattern":"^[A-Za-z0-9:]{1,128}$"}}},"BalanceTokenAddressQuery":{"name":"token_address","in":"query","required":false,"description":"Keep one token, `ethereum` and `solana` only (a UTXO chain holds no token: 400). On ethereum `0x`-prefixed hex matched case-insensitively; on solana the mint address. The native coin has no token address: keep it with `asset_scope=native`.","schema":{"type":"string","pattern":"^[A-Za-z0-9]{1,128}$"}},"AssetScopeQuery":{"name":"asset_scope","in":"query","required":false,"description":"Which assets to keep: `native` the chain's coin, `token` every other asset, `all` both. On a chain whose only asset is its coin (UTXO chains), any value but the default returns 400.","schema":{"$ref":"#/components/schemas/AssetScope"}},"AtTimeQuery":{"name":"at_time","in":"query","required":false,"description":"Read as of this instant, ISO 8601 UTC, at the precision the endpoint documents: the state at the end of the newest block mined at or before it. Exclusive with a window.","schema":{"type":"string","format":"date-time"}},"AtBlockQuery":{"name":"at_block","in":"query","required":false,"description":"Read as of the end of this block. Exclusive with `at_time` and with a window.","schema":{"type":"integer","format":"int64","minimum":1}},"StartTimeQuery":{"name":"start_time","in":"query","required":false,"description":"Inclusive start of the window, ISO 8601 UTC. The endpoint documents its precision and its default when omitted; a nanosecond endpoint accepts any precision from seconds to nanoseconds.\n","schema":{"type":"string","format":"date-time"}},"EndTimeQuery":{"name":"end_time","in":"query","required":false,"description":"Exclusive end of the window, ISO 8601 UTC, at the precision the endpoint documents. Defaults to now. Must be after `start_time`.\n","schema":{"type":"string","format":"date-time"}},"TransactionStartBlockQuery":{"name":"start_block","in":"query","required":false,"description":"Inclusive first block. Combines with `start_time` and `end_time`: every bound sent applies.","schema":{"type":"integer","format":"int64","minimum":1}},"TransactionEndBlockQuery":{"name":"end_block","in":"query","required":false,"description":"Exclusive end block: the window stops before it. Combines with `start_time` and `end_time`: every bound sent applies.","schema":{"type":"integer","format":"int64","minimum":1}},"LiveQuery":{"name":"live","in":"query","required":false,"description":"Include the most recent blocks, which are not yet safe from re-organisation. Rows read that way can change or disappear on a later call.","schema":{"type":"boolean","default":false}},"BalanceSortQuery":{"name":"sort","in":"query","required":false,"description":"Direction of the order: on (`block_number`, `address`, `token_address`, `token_id`) for a series or point read, on (`address`, `token_address`, `token_id`) for a latest read. Descending by default (newest block first on a series).","schema":{"$ref":"#/components/schemas/Sort"}},"PageSizeQuery":{"name":"page_size","in":"query","required":false,"description":"Rows per page. A value above the maximum returns 400, never a silent cap. Endpoints needing other bounds define their own `PageSize<Resource>Query`.\n","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},"BalanceAfterBlockNumberQuery":{"name":"after_block_number","in":"query","required":false,"description":"Resume point of a series read, and of a point read on ethereum and solana, with `after_address` and, on ethereum and solana, `after_token_address` and `after_token_id`: serve the rows after this position, in the order `sort` asks for. On an ethereum or solana series it can come alone, after a page the backend stopped early: serve the rows after that whole block. Not on a latest read, nor on a UTXO point read (400). Copy it from `meta.next_url`.","schema":{"type":"integer","format":"int64","minimum":0}},"BalanceAfterAddressQuery":{"name":"after_address","in":"query","required":false,"description":"Resume point: the `address` of the last row read (on a UTXO chain's latest or point read, the last wallet of the page's batch of `addresses`), with the other `after_*` parameters its read takes (a partial set returns 400). Copy it from `meta.next_url`.","schema":{"type":"string","pattern":"^[A-Za-z0-9:]{1,128}$"}},"AfterTokenAddressQuery":{"name":"after_token_address","in":"query","required":false,"description":"Resume point on ethereum and solana: the `token_address` of the last row read, sent empty (`after_token_address=`) when that row is the native coin. With `after_address` and `after_token_id`. Copy it from `meta.next_url`.","schema":{"type":"string","pattern":"^[A-Za-z0-9]{0,128}$"}},"AfterTokenIdQuery":{"name":"after_token_id","in":"query","required":false,"description":"Resume point on ethereum and solana: the `token_id` of the last row read, sent empty (`after_token_id=`) when that row has none. With `after_address` and `after_token_address`. Copy it from `meta.next_url`.","schema":{"type":"string","pattern":"^(0|[1-9][0-9]*)?$"}},"ApiVersionQuery":{"name":"api_version","in":"query","required":false,"description":"Contract version to serve, as a date. Each endpoint serves its newest version released on or before it, so one date pins the whole API. When omitted, the endpoint's oldest version still served is used, so breaking changes only reach clients that raise their date. Append `-preview` (`2027-02-01-preview`) to also be served preview versions, which carry no stability promise. A date in the future, or one resolving to a retired version, returns 400 `unsupported_api_version`. The version served is echoed in `meta.api_version`, and `meta.url` and `meta.next_url` always carry this parameter. No `default` here on purpose: it differs per endpoint, and the request validator would otherwise fill in one date for all of them.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(-preview)?$"}}},"schemas":{"AssetScope":{"type":"string","enum":["all","native","token"],"default":"all","description":"Which assets a wallet read keeps: `native` the chain's coin, `token` every other asset, `all` both."},"Sort":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Order on the time axis."},"ListBalancesResponse":{"type":"object","description":"One page of balances.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Balance"}},"meta":{"$ref":"#/components/schemas/Meta"}}},"Balance":{"description":"One balance row, as a `UtxoBalance`, an `EvmBalance` or a `SolanaBalance` according to `chain_family`. Clients must tolerate an unknown `chain_family` value.","oneOf":[{"$ref":"#/components/schemas/UtxoBalance"},{"$ref":"#/components/schemas/EvmBalance"},{"$ref":"#/components/schemas/SolanaBalance"}],"discriminator":{"propertyName":"chain_family","mapping":{"utxo":"#/components/schemas/UtxoBalance","evm":"#/components/schemas/EvmBalance","solana":"#/components/schemas/SolanaBalance"}}},"UtxoBalance":{"description":"The balance of a wallet on a UTXO chain (`chain_family` `utxo`), in the chain's coin: the base columns and when the wallet first appeared.","allOf":[{"$ref":"#/components/schemas/BalanceBase"},{"type":"object","required":["first_acquired_timestamp"],"properties":{"first_acquired_timestamp":{"type":"string","format":"date-time","description":"Time of the first block in which the wallet appeared on the chain, exact, ISO 8601 UTC, millisecond precision. The account variants carry the month instead: an exception to one grain per column, decided with product, because the UTXO store keeps the exact instant and the account store only the month."}}}]},"BalanceBase":{"type":"object","description":"The columns every balance row has, whatever its chain family: the balance of (`address`, asset, `token_id`) at the end of `block_number`. Unique on (`blockchain`, `address`, `token_address`, `token_id`, `block_number`); a UTXO row has one asset, the chain's coin.","required":["chain_family","blockchain","address","block_number","timestamp","token_address","token_id","balance","token_price","balance_usd","balance_in","balance_out","last_change_block","last_change_timestamp"],"properties":{"chain_family":{"$ref":"#/components/schemas/BalanceChainFamily"},"blockchain":{"type":"string","description":"Kaiko blockchain code, as requested."},"address":{"type":"string","description":"The wallet, as the chain stores it (lowercase on ethereum, the cashaddr form on bitcoincash)."},"block_number":{"type":"integer","format":"int64","minimum":0,"description":"The block at whose end the row's balance is taken (the slot on solana). A latest read: the newest block when the page was read. A point read: the newest block at or before the point in which the wallet's balances changed (the block the point resolves to on a UTXO chain). A series: a block in which one of the wallet's balances changed."},"timestamp":{"type":"string","format":"date-time","description":"Time of `block_number`, ISO 8601 UTC, millisecond precision (UTXO and ethereum blocks record whole seconds)."},"token_address":{"type":["string","null"],"description":"Contract (ethereum, lowercase) or mint (solana) address of the token. `null` when not applicable: the asset is the chain's native coin, which has no token address (every UTXO row). On ethereum and solana the native coin's row carries `token_symbol` `ETH` or `SOL` and `token_standards` `[\"native\"]`."},"token_id":{"type":["string","null"],"pattern":"^(0|[1-9][0-9]*)$","description":"The ERC-721 or ERC-1155 token id held, in decimal (ids exceed 2^53); the balance is the units of that one id. `null` when not applicable: the asset is not a non-fungible token, or the chain has none (UTXO chains, solana)."},"balance":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Balance at the end of `block_number`, in whole units of the asset: the chain's coin on a UTXO chain, the token with its decimals applied on ethereum and solana, units of the id for a non-fungible token. A series lists an id that left the wallet once, at `0`, in the block it left. Assets at a balance of `0` are returned as rows: drop them to keep current holdings only."},"token_price":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"US dollar price of one whole unit of the asset at `last_change_block`, the movement that last set the balance, on every row and every read: `block_number`'s own price when the balance changed there, an older one on a latest row or on an asset a series or point row carries. So `balance_usd` values a long-held asset at the price of its last movement, not at `block_number`. `null` when not reported: that block is outside the asset's price coverage, or the asset is a non-fungible token, which has no unit price; or when not applicable: the balance never changed (`last_change_block` is `null`)."},"balance_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"`balance` at `token_price` (the price at `last_change_block`), in US dollars. `null` exactly when `token_price` is `null`, never because the value is zero."},"balance_in":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Everything the wallet ever received in the chain's coin, up to the end of `block_number`, in whole coins: exact on a UTXO chain; on ethereum's native row a figure the store keeps as a binary float, so at most 17 significant digits (an exception to exact amounts). `null` when not applicable: a token row, or any solana row."},"balance_out":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Everything the wallet ever sent in the chain's coin, on the same rule as `balance_in`; `balance_in` minus `balance_out` is `balance` on a UTXO row. `null` when not applicable: a token row, or any solana row."},"last_change_block":{"type":["integer","null"],"format":"int64","minimum":0,"description":"Newest block at or before `block_number` in which this balance changed; `0` is real (ethereum's genesis allocations). On a series it equals `block_number` for the asset that moved there and is older for the others. `null` when not applicable: a UTXO wallet whose every block nets to zero never changed its balance."},"last_change_timestamp":{"type":["string","null"],"format":"date-time","description":"Time of `last_change_block`, ISO 8601 UTC, millisecond precision. `null` exactly when `last_change_block` is `null`."}}},"BalanceChainFamily":{"type":"string","enum":["utxo","evm","solana"],"description":"Data model of the chain, which decides the balance row's variant. `utxo`: one asset, the chain's coin, held in unspent outputs (bitcoin, bitcoincash, litecoin). `evm`: accounts holding a native coin and tokens (ethereum). `solana`: accounts holding a native coin and tokens."},"EvmBalance":{"description":"The balance of one asset of a wallet on an EVM chain (`chain_family` `evm`): the base columns, the token's identity and the month the wallet first held it.","allOf":[{"$ref":"#/components/schemas/BalanceBase"},{"type":"object","required":["token_symbol","token_name","token_decimals","token_standards","first_acquired_timestamp"],"properties":{"token_symbol":{"type":["string","null"],"description":"The token's symbol, as the token metadata holds it. `null` when not reported."},"token_name":{"type":["string","null"],"description":"The token's name, as the token metadata holds it. `null` when not reported."},"token_decimals":{"type":["integer","null"],"format":"int64","minimum":0,"description":"Number of decimals of the token's smallest unit, already applied to `balance`. `null` when not reported; `0` is a real value."},"token_standards":{"type":"array","description":"The standards the token satisfies, from the token metadata (`erc20`, `erc721`, `erc1155`, `native`, ...); empty when it holds none.","items":{"type":"string"}},"first_acquired_timestamp":{"type":"string","format":"date-time","description":"Start of the month in which the wallet first held the asset, ISO 8601 UTC, millisecond precision: the grain the balance index keeps. A UTXO row carries the exact instant instead (an exception to one grain per column, decided with product)."}}}]},"SolanaBalance":{"description":"The balance of one asset of a wallet on solana (`chain_family` `solana`): the base columns, the token's identity and the month the wallet first held it.","allOf":[{"$ref":"#/components/schemas/BalanceBase"},{"type":"object","required":["token_symbol","token_name","token_decimals","token_standards","first_acquired_timestamp"],"properties":{"token_symbol":{"type":["string","null"],"description":"The token's symbol, as the token metadata holds it. `null` when not reported."},"token_name":{"type":["string","null"],"description":"The token's name, as the token metadata holds it. `null` when not reported."},"token_decimals":{"type":["integer","null"],"format":"int64","minimum":0,"description":"Number of decimals of the token's smallest unit, already applied to `balance`. `null` when not reported; `0` is a real value."},"token_standards":{"type":"array","description":"The standards the token satisfies, from the token metadata (`spl`, `native`, ...); empty when it holds none. A solana row carries `spl`, `spl2022` or `native`.","items":{"type":"string"}},"first_acquired_timestamp":{"type":"string","format":"date-time","description":"Start of the month in which the wallet first held the asset, ISO 8601 UTC, millisecond precision: the grain the balance index keeps. A UTXO row carries the exact instant instead (an exception to one grain per column, decided with product)."}}}]},"Meta":{"type":"object","description":"Metadata of a collection response.","required":["api_version","url","count","next_url"],"properties":{"api_version":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(-preview)?$","description":"Version this endpoint served: its version released on or before the requested `api_version`, or its oldest version still served when the request omitted it. Suffixed `-preview` when a preview version served it."},"url":{"type":"string","format":"uri","description":"Absolute URL of the request that produced this response, as received: path and query string unchanged, defaults not filled in, except `api_version`, which is always present (the version served when the request omitted it). Lets a stored response say what it answers, in the shape it was answered."},"count":{"type":"integer","minimum":0,"description":"Number of items in `data` on this page."},"next_url":{"type":["string","null"],"format":"uri","description":"Absolute URL of the next page, `null` on the last page. It holds only public parameters: the original query with every default made explicit (`api_version` included) and the time bound moved past the last row, plus the dataset's tie-breaker (`after_<key>`) where timestamps can tie. An operation that pages on another keyset (a block position, a snapshot) says so in its description, and its `next_url` carries that keyset's parameters instead."}}},"Problem":{"type":"object","description":"RFC 9457 problem details. Served as application/problem+json.","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri-reference","const":"about:blank","description":"Always `about:blank`; the reason is carried by `code`."},"title":{"type":"string","description":"HTTP reason phrase."},"status":{"type":"integer","minimum":400,"maximum":599,"description":"HTTP status code, repeated for clients that lose the status line."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Do not parse it."},"instance":{"type":"string","format":"uri-reference","description":"Request path and request id, to quote to support."},"code":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","description":"Stable machine-readable reason. Clients branch on this. New values are additive; renaming one is breaking. Values in use: invalid_parameter, unsupported_api_version, missing_api_key, invalid_api_key, not_entitled, history_out_of_entitlement, unknown_instrument, pair_not_covered, unknown_asset, unknown_index, unsupported_blockchain, chain_capability_unsupported, token_not_found, unknown_contract, unknown_protocol, unknown_pool, query_too_large, snapshot_expired, resource_not_found, method_not_allowed, not_acceptable, rate_limited, internal_error, service_unavailable."},"errors":{"type":"array","description":"On 400, one entry per invalid parameter.","items":{"$ref":"#/components/schemas/ParameterError"}}}},"ParameterError":{"type":"object","description":"One invalid parameter in a 400 response.","required":["parameter","detail"],"properties":{"parameter":{"type":"string","description":"Name of the offending parameter."},"detail":{"type":"string","description":"What is wrong with it."}}}},"responses":{"BadRequest":{"description":"Invalid parameter, window or API version.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Unauthorized":{"description":"Missing or unknown X-Api-Key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Forbidden":{"description":"The key is valid but not entitled to this product, instrument or history depth.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"NotAcceptable":{"description":"The Accept header excludes application/json.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"TooManyRequests":{"description":"Rate limited. Retry after the delay in Retry-After.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"InternalError":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"ServiceUnavailable":{"description":"A dependency is down or the data is not available yet.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}}}},"paths":{"/blockchains/balances":{"get":{"operationId":"ListBalances","tags":["Balances"],"summary":"What is this endpoint for?","description":"Wallet balances give the amount of every asset a wallet holds on a blockchain, the native coin and each token, with its value in US dollars. Read a wallet's current holdings, its holdings at any past time or block, or the full history of its balance changes. Up to 200 wallets per request on Bitcoin, Bitcoin Cash, Litecoin, Ethereum and Solana.","parameters":[{"$ref":"#/components/parameters/BlockchainQuery"},{"$ref":"#/components/parameters/BalanceAddressesQuery"},{"$ref":"#/components/parameters/BalanceTokenAddressQuery"},{"$ref":"#/components/parameters/AssetScopeQuery"},{"$ref":"#/components/parameters/AtTimeQuery"},{"$ref":"#/components/parameters/AtBlockQuery"},{"$ref":"#/components/parameters/StartTimeQuery"},{"$ref":"#/components/parameters/EndTimeQuery"},{"$ref":"#/components/parameters/TransactionStartBlockQuery"},{"$ref":"#/components/parameters/TransactionEndBlockQuery"},{"$ref":"#/components/parameters/LiveQuery"},{"$ref":"#/components/parameters/BalanceSortQuery"},{"$ref":"#/components/parameters/PageSizeQuery"},{"$ref":"#/components/parameters/BalanceAfterBlockNumberQuery"},{"$ref":"#/components/parameters/BalanceAfterAddressQuery"},{"$ref":"#/components/parameters/AfterTokenAddressQuery"},{"$ref":"#/components/parameters/AfterTokenIdQuery"},{"$ref":"#/components/parameters/ApiVersionQuery"}],"responses":{"200":{"description":"One page of balances, in the order `sort` asks for.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBalancesResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"The `blockchain` is not a Kaiko chain.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"406":{"$ref":"#/components/responses/NotAcceptable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kaiko.com/rest-api/onchain-data/wallets/balances.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
