# Token blocks

Token blocks are periodic snapshots of token-related data captured at specific blockchain blocks. These are used in vault logic and on-chain analytics.

## Structure

Each token block object includes:

* `_id` *(string)* — Unique identifier
* `tokenId` *(string)* — ID of the associated token
* `tokenAddress` *(string)* — Ethereum address of the token (0x... format)
* `price` *(string)* — Price of the token at this block
* `block` *(object)* —
  * `number` *(number)* — Block number
  * `timestamp` *(number)* — Unix timestamp (UTC)
* `createdAt`, `updatedAt` *(string)* — ISO timestamps
* `createdBy`, `updatedBy` *(string)* — Actor IDs

{% openapi src="/files/wGQvB3cy57sPT85EmiTU" path="/token-blocks" method="get" %}
[TokenBlocks.yaml](https://4223418165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVSPclqPyChB4NMxFfG2X%2Fuploads%2FkzbkpCvUQifQK8BMU1n4%2FTokenBlocks.yaml?alt=media\&token=dbc0764d-a59a-4457-a14a-bb05f5d5b3fb)
{% endopenapi %}

{% openapi src="/files/wGQvB3cy57sPT85EmiTU" path="/token-blocks/{tokenBlockId}" method="get" %}
[TokenBlocks.yaml](https://4223418165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVSPclqPyChB4NMxFfG2X%2Fuploads%2FkzbkpCvUQifQK8BMU1n4%2FTokenBlocks.yaml?alt=media\&token=dbc0764d-a59a-4457-a14a-bb05f5d5b3fb)
{% endopenapi %}


---

# Agent Instructions: 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:

```
GET https://docs.pareto.credit/developers/api/token-blocks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
