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 identifiertokenId
(string) — ID of the associated tokentokenAddress
(string) — Ethereum address of the token (0x... format)price
(string) — Price of the token at this blockblock
(object) —number
(number) — Block numbertimestamp
(number) — Unix timestamp (UTC)
createdAt
,updatedAt
(string) — ISO timestampscreatedBy
,updatedBy
(string) — Actor IDs
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-07-03T20:37:53.123Z",
"createdAt": "2025-07-03T20:37:53.123Z",
"updatedAt": "2025-07-03T20:37:53.123Z",
"createdBy": "text",
"updatedBy": "text"
}
],
"totalCount": 1
}
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-07-03T20:37:53.123Z",
"createdAt": "2025-07-03T20:37:53.123Z",
"updatedAt": "2025-07-03T20:37:53.123Z",
"createdBy": "text",
"updatedBy": "text"
}
Last updated