GET /v2/amplify/supplyCaps returns up-to-the-block totalSupplyInBase, supplyCap, and percentageFilled per chain each vault is deployed on. Use it to render deposit-cap utilization (e.g. a progress bar) on a deposit screen, or to soft-block deposits that would exceed the cap before sending them on-chain.
totalSupplyInBase and supplyCap are both denominated in the vault base asset, so they are directly comparable without any unit conversion in the UI.
filter is a single AIP-160-style query parameter and is optional. Both
flags inside the filter are optional: vaultAddress (hex) scopes to one
vault, chainId (number) scopes to one chain. With no filter, every live
vault deployment is returned.Uncapped vaults return
supplyCap: null and percentageFilled: null. A vault
is uncapped when supplyCapInBase() on-chain returns 0 or 2^256 - 1, or
when the deployment predates the supply-cap upgrade (no deposit fee module
configured). Render those as “uncapped” in the UI rather than treating null
as an error.Parameters
Example
- curl
- Node.js
- Python
- Go