> For the complete documentation index, see [llms.txt](https://docs.pareto.credit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pareto.credit/developers/api/vault-blocks.md).

# Vault blocks

Vault blocks are detailed blockchain-based snapshots of a vault’s state at a specific block height. They are used for calculating APR/APY, tracking liquidity, and generating analytics.

## Structure

Each vault block object includes:

* `_id` *(string)* — Unique identifier
* `vaultId` *(string)* — Vault being tracked
* `vaultAddress` *(string)* — Smart contract address of the vault
* `block` *(object)*:
  * `number` *(number)* — Block number
  * `timestamp` *(number)* — Unix timestamp of the block
* `APRs` *(object)* — Non-compounded APRs:
  * `BASE`, `HARVEST`, `REWARDS`, `GROSS`, `NET`, `FEE` *(number)*
* `APYs` *(object)* — Compounded yield rates:
  * `BASE`, `HARVEST`, `REWARDS`, `GROSS`, `NET`, `FEE` *(number)*
* `totalSupply` *(string)* — Total shares issued by the vault
* `price` *(string)* — Price per share
* `TVL` *(object)* —
  * `token` *(string)* — TVL in vault token
  * `USD` *(string)* — TVL in USD
* `pools` *(array of objects)* — Breakdown of pool-level performance:
  * `address` *(string)*
  * `protocol` *(string)*
  * `rates`: `{ supply: number, borrow: number }`
  * `utilization`: `{ supplied: string, borrowed: string, rate: number }`
  * `available`: `{ toBorrow: string, toWithDraw: string }`
* `allocations` *(array)* — Optional pool allocation breakdown
* `createdAt`, `updatedAt` *(string)* — ISO timestamps
* `createdBy`, `updatedBy` *(string)* — Actor IDs

## Endpoints

{% openapi src="/files/91tLoA1zmjeP32AG0yzv" path="/vault-blocks" method="get" %}
[VaultBlocks.yaml](https://4223418165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVSPclqPyChB4NMxFfG2X%2Fuploads%2FutXySYq67YODk76iQB8a%2FVaultBlocks.yaml?alt=media\&token=864b3632-a901-4f33-9d4f-d59b74ccb7ba)
{% endopenapi %}

{% openapi src="/files/91tLoA1zmjeP32AG0yzv" path="/vault-blocks/{vaultBlockId}" method="get" %}
[VaultBlocks.yaml](https://4223418165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVSPclqPyChB4NMxFfG2X%2Fuploads%2FutXySYq67YODk76iQB8a%2FVaultBlocks.yaml?alt=media\&token=864b3632-a901-4f33-9d4f-d59b74ccb7ba)
{% endopenapi %}

## Vault latest blocks

Vault latest blocks are real-time snapshots of the most recent state for each vault. Unlike vault blocks (historical), these represent the **current** or **latest available** data.

## Endpoints

{% openapi src="/files/MVFdgZ8bP1chFWQOTXo8" path="/vault-latest-blocks" method="get" %}
[VaultLatestBlocks.yaml](https://4223418165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVSPclqPyChB4NMxFfG2X%2Fuploads%2FZmlBYllofNTVGllwBoao%2FVaultLatestBlocks.yaml?alt=media\&token=158a3b3b-1268-476d-8c20-3fde8bf3bc49)
{% endopenapi %}


---

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

```
GET https://docs.pareto.credit/developers/api/vault-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.
