chain.analytics.v1.ChainAnalyticsService
GetZippedAssetSupply
Get route-scoped zipped asset supply chart columns.
Request
curl --request POST \ \
--url 'https://api.testnet.polyester.com/chain.analytics.v1.ChainAnalyticsService/GetZippedAssetSupply' \
--header 'Content-Type: application/json' \
--header 'Connect-Protocol-Version: 1' \
--data '{
"bucket": "1m",
"endTsSec": 1735689600,
"range": "DAY_1",
"startTsSec": 1735689600,
"zippedAssetId": 100
}'Responses
{
"bucket": "1m",
"endTsSec": 1735689600,
"points": 1,
"range": "DAY_1",
"startTsSec": 1735689600,
"totalSupplyQ": [
"1"
],
"zippedAssetId": 100
}chain.analytics.v1.GetZippedAssetSupplyRequestchain.analytics.v1.GetZippedAssetSupplyResponseZipped asset route identifier.
Standard history window. Defaults to 1 day when unspecified.
Optional explicit bucket. Allowed values are 1m, 5m, 10m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, or 1d. Valid buckets depend on range to keep chart payloads near 1k points. When omitted, the server picks the default bucket for the selected range.
Optional inclusive start timestamp in seconds since Unix epoch.
Optional inclusive end timestamp in seconds since Unix epoch.
Zipped asset route identifier.
Resolved history window.
Resolved bucket duration.
First bucket timestamp in seconds since Unix epoch.
Last bucket timestamp in seconds since Unix epoch.
Number of buckets represented by each value column.
Total zToken supply per bucket scaled by the unified asset's AssetConfig.quantity_scale from SpotConfig for this zipped asset. Decode: total_supply_q / 10^quantity_scale.
| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |