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

Token blocks

PreviousOperatorsNextTokens

Last updated 1 month ago

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

List all token blocks

get
Responses
200
A list of token blocks
application/json
get
GET /v1/token-blocks HTTP/1.1
Host: api.pareto.credit
Accept: */*
200

A list of token blocks

{
  "data": [
    {
      "_id": "text",
      "tokenId": "text",
      "chainId": "text",
      "blockNumber": 1,
      "price": 1,
      "liquidity": 1,
      "volume": 1,
      "timestamp": "2025-05-19T00:47:17.987Z",
      "createdAt": "2025-05-19T00:47:17.987Z",
      "updatedAt": "2025-05-19T00:47:17.987Z",
      "createdBy": "text",
      "updatedBy": "text"
    }
  ],
  "totalCount": 1
}

Get token block by ID

get
Path parameters
tokenBlockIdstringRequired
Responses
200
Token block details
application/json
get
GET /v1/token-blocks/{tokenBlockId} HTTP/1.1
Host: api.pareto.credit
Accept: */*
200

Token block details

{
  "_id": "text",
  "tokenId": "text",
  "chainId": "text",
  "blockNumber": 1,
  "price": 1,
  "liquidity": 1,
  "volume": 1,
  "timestamp": "2025-05-19T00:47:17.987Z",
  "createdAt": "2025-05-19T00:47:17.987Z",
  "updatedAt": "2025-05-19T00:47:17.987Z",
  "createdBy": "text",
  "updatedBy": "text"
}
  • Structure
  • GETList all token blocks
  • GETGet token block by ID