LogoLogo
Launch App ->
  • Overview
  • Product
    • Credit Vaults
      • Tranching
      • Live vaults
    • USP
      • Allocation
      • Risks
      • FAQs
    • Users
      • Lenders
        • Verification
        • Guides
          • Onboarding
          • Deposit
          • Redeem
      • Curators
      • Borrowers
  • Developers
    • Addresses
      • Product
        • Credit Vaults
        • USP
      • Governance
    • Integrators
    • API
      • Campaigns
      • Chains
      • Operators
      • Token blocks
      • Tokens
      • Transactions
      • Vaults
      • Vault blocks
      • Vault categories
      • Vault epochs
      • Vault performances
      • Vault types
    • Security
      • Audits
  • Resources
    • Media kit
Powered by GitBook
On this page
Export as PDF
  1. Developers
  2. API

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

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

PreviousVaultsNextVault categories

Last updated 1 month ago

List the latest block snapshot per vault

get
Responses
200
Latest vault state per block
application/json
get
GET /v1/vault-latest-blocks HTTP/1.1
Host: api.pareto.credit
Accept: */*
200

Latest vault state per block

{
  "data": [
    {
      "vaultId": "text",
      "vaultAddress": "text",
      "block": {
        "number": 1,
        "timestamp": 1
      },
      "TVL": {
        "token": "text",
        "USD": "text"
      },
      "price": "text",
      "APRs": {
        "BASE": 1,
        "HARVEST": 1,
        "REWARDS": 1,
        "GROSS": 1,
        "NET": 1,
        "FEE": 1
      },
      "createdAt": "2025-05-19T00:47:17.987Z",
      "updatedAt": "2025-05-19T00:47:17.987Z",
      "createdBy": "text",
      "updatedBy": "text"
    }
  ],
  "totalCount": 1
}
  • Structure
  • Endpoints
  • GETList all vault blocks
  • GETGet vault block by ID
  • Vault latest blocks
  • Endpoints
  • GETList the latest block snapshot per vault

List all vault blocks

get
Responses
200
A list of vault blocks
application/json
get
200

A list of vault blocks

Get vault block by ID

get
Path parameters
vaultBlockIdstringRequired
Responses
200
Vault block details
application/json
get
200

Vault block details

GET /v1/vault-blocks HTTP/1.1
Host: api.pareto.credit
Accept: */*
{
  "data": [
    {
      "_id": "text",
      "vaultId": "text",
      "vaultAddress": "text",
      "block": {
        "number": 1,
        "timestamp": 1
      },
      "APRs": {
        "BASE": 1,
        "HARVEST": 1,
        "REWARDS": 1,
        "GROSS": 1,
        "NET": 1,
        "FEE": 1
      },
      "APYs": {
        "BASE": 1,
        "HARVEST": 1,
        "REWARDS": 1,
        "GROSS": 1,
        "NET": 1,
        "FEE": 1
      },
      "totalSupply": "text",
      "price": "text",
      "TVL": {
        "token": "text",
        "USD": "text"
      },
      "pools": [
        {
          "address": "text",
          "protocol": "text",
          "rates": {
            "supply": 1,
            "borrow": 1
          },
          "utilization": {
            "supplied": "text",
            "borrowed": "text",
            "rate": 1
          },
          "available": {
            "toBorrow": "text",
            "toWithDraw": "text"
          }
        }
      ],
      "allocations": [],
      "createdAt": "2025-05-19T00:47:17.987Z",
      "updatedAt": "2025-05-19T00:47:17.987Z",
      "createdBy": "text",
      "updatedBy": "text"
    }
  ],
  "totalCount": 1
}
GET /v1/vault-blocks/{vaultBlockId} HTTP/1.1
Host: api.pareto.credit
Accept: */*
{
  "_id": "text",
  "vaultId": "text",
  "vaultAddress": "text",
  "block": {
    "number": 1,
    "timestamp": 1
  },
  "APRs": {
    "BASE": 1,
    "HARVEST": 1,
    "REWARDS": 1,
    "GROSS": 1,
    "NET": 1,
    "FEE": 1
  },
  "APYs": {
    "BASE": 1,
    "HARVEST": 1,
    "REWARDS": 1,
    "GROSS": 1,
    "NET": 1,
    "FEE": 1
  },
  "totalSupply": "text",
  "price": "text",
  "TVL": {
    "token": "text",
    "USD": "text"
  },
  "pools": [
    {
      "address": "text",
      "protocol": "text",
      "rates": {
        "supply": 1,
        "borrow": 1
      },
      "utilization": {
        "supplied": "text",
        "borrowed": "text",
        "rate": 1
      },
      "available": {
        "toBorrow": "text",
        "toWithDraw": "text"
      }
    }
  ],
  "allocations": [],
  "createdAt": "2025-05-19T00:47:17.987Z",
  "updatedAt": "2025-05-19T00:47:17.987Z",
  "createdBy": "text",
  "updatedBy": "text"
}