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

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-08-31T00:13:38.193Z",
      "createdAt": "2025-08-31T00:13:38.193Z",
      "updatedAt": "2025-08-31T00:13:38.193Z",
      "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-08-31T00:13:38.193Z",
  "createdAt": "2025-08-31T00:13:38.193Z",
  "updatedAt": "2025-08-31T00:13:38.193Z",
  "createdBy": "text",
  "updatedBy": "text"
}

Last updated