Skip to main content
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)
Use this when payload size matters — mobile apps, embedded widgets, anywhere you’d otherwise gzip the JSON yourself.

Endpoint

Request

Authentication

Authentication is optional. With an Api-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 follow CHAIN.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 (the max-age value).

Errors

Decoder Example (TypeScript)

Notes

  • The binary format is versioned via the LK02 magic + 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

Api-Key
string
header
required

Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4

Response

Gzipped binary blob.

The response is of type file.