Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.leokit.dev/llms.txt

Use this file to discover all available pages before exploring further.

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 an Api-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 with X-Cache: HIT|MISS response headers. TTLs vary:
EndpointTTL
/explorer/stats60 s
/explorer/analytics5 min
/explorer/wallet/{addr}60 s
/explorer/pools5 min
/explorer/near-earnings10 min
/explorer/transactionsnone
/explorer/searchnone
/explorer/tx/{id}none
/explorer/onchain/{chain}/{hash}none

Response Shape

All responses follow:
{ "data": { /* ... */ } }
or for arrays:
{ "data": [ /* ... */ ], "count": 42 }
Errors use HTTP status + { "error": "...", "message": "..." }.

ExplorerTransaction Shape

The shape used by search, transactions, wallet.recent_txs, and tx:
{
  "id": "01953c9a-...",
  "tx_hash": "0xabc...",
  "from_asset": "ETH.USDC-0xA0b...",
  "to_asset": "BTC.BTC",
  "from_address": "0x1234...",
  "to_address": "bc1q...",
  "volume_usd": 1234.56,
  "protocol": "thorchain",
  "swap_date": "2026-04-28T12:00:00.000Z",
  "from_symbol": "USDC",
  "to_symbol": "BTC",
  "from_chain": "ETH",
  "to_chain": "BTC"
}