Overview
The Explorer API exposes the public, anonymized swap dataset that powers explorer.leokit.dev. It provides aggregated stats, period analytics, transaction lookups, wallet activity, protocol pool TVL, NEAR-ecosystem fee tracking, and on-chain transaction lookups across EVM and UTXO networks. These endpoints are public — they do not require anApi-Key. They are not scoped to any individual client; the data covers all swaps brokered through LeoKit globally.
Endpoints
Search
Find swaps by tx hash, wallet address, or partial match
Stats
Top-level totals: 24h volume, total swaps, supported chains
Analytics
Period analytics: timelines, top pairs, protocol breakdown
Transactions
Paginated swap feed with chain/protocol filters
Transaction Detail
Single-tx lookup with related-tx context
Wallet
Per-wallet summary, top pairs, activity heatmap
Pools
Live TVL across MAYAChain, THORChain, Chainflip, LEO
NEAR Earnings
NEAR-ecosystem affiliate fees collected by leodex.near
Onchain Lookup
Raw chain-state lookup by chain + tx hash
Common Conventions
Authentication
None. These endpoints are publicly accessible and intended to back analytics dashboards.Caching
Most endpoints have server-side cache withX-Cache: HIT|MISS response headers. TTLs vary:
| Endpoint | TTL |
|---|---|
/explorer/stats | 60 s |
/explorer/analytics | 5 min |
/explorer/wallet/{addr} | 60 s |
/explorer/pools | 5 min |
/explorer/near-earnings | 10 min |
/explorer/transactions | none |
/explorer/search | none |
/explorer/tx/{id} | none |
/explorer/onchain/{chain}/{hash} | none |
Response Shape
All responses follow:{ "error": "...", "message": "..." }.
ExplorerTransaction Shape
The shape used by search, transactions, wallet.recent_txs, and tx: