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 identifiervaultId
(string) — Vault being trackedvaultAddress
(string) — Smart contract address of the vaultblock
(object):number
(number) — Block numbertimestamp
(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 vaultprice
(string) — Price per shareTVL
(object) —token
(string) — TVL in vault tokenUSD
(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 breakdowncreatedAt
,updatedAt
(string) — ISO timestampscreatedBy
,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
Last updated