Compact binary asset list (gzipped)
Endpoint Details
Assets v2 (Compact Binary)
Compact gzipped binary asset list — same data as /leokit/assets at ~170 KB instead of ~3 MB
GET
Compact binary asset list (gzipped)
Overview
/leokit/v2/assets returns the same supported-asset universe as /leokit/assets, but in a compact binary format:
- ~170 KB gzipped vs ~3 MB JSON
- 5,000+ tokens with prices in a single response
- Per-client cache, pre-built at asset-refresh time (no on-request serialization)
- Strips icon URLs (clients derive them from the CDN pattern)
Endpoint
Request
Authentication
Authentication is optional. With anApi-Key, disabled_chains and client-restricted tokens are filtered out. Without one, the public asset universe is returned.
Response
Headers
Wire Format
The body is a single gzipped blob. After decompression:Reconstructing an Asset ID
Asset IDs followCHAIN.SYMBOL-ADDRESS format:
Caching
The full binary is per-client-pre-built server-side and refreshed when the global asset list updates. Clients should cache locally for 20 seconds (themax-age value).
Errors
| Status | Description |
|---|---|
503 | Asset list not yet loaded (server just restarted). Body is plain text "Assets not yet loaded". Retry after the Retry-After header (seconds). |
Decoder Example (TypeScript)
Notes
- The binary format is versioned via the
LK02magic + version byte. Future formats (LK03, etc.) will increment the magic. Always validate the magic before parsing. - Only transparent UTXO addresses are included. Shielded ZEC tokens are not part of the asset list.
- For richer per-token metadata (icons, descriptions, etc.) use
/leokit/assets.
Authorizations
Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4
Response
Gzipped binary blob.
The response is of type file.