Skip to main content
GET
/
explorer
/
search
Explorer search (tx hash or wallet)
curl --request GET \
  --url https://api.leokit.dev/explorer/search
{
  "data": [
    {
      "id": "<string>",
      "tx_hash": "<string>",
      "from_asset": "<string>",
      "to_asset": "<string>",
      "from_address": "<string>",
      "to_address": "<string>",
      "volume_usd": 123,
      "protocol": "<string>",
      "swap_date": "2023-11-07T05:31:56Z",
      "from_symbol": "<string>",
      "to_symbol": "<string>",
      "from_chain": "<string>",
      "to_chain": "<string>"
    }
  ],
  "count": 123,
  "search_type": "<string>",
  "wallet_summary": {
    "total_volume_usd": 123,
    "transaction_count": 123,
    "first_seen": "2023-11-07T05:31:56Z"
  }
}

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.

Endpoint

GET /leokit/explorer/search
No authentication required.

Request

ParameterTypeRequiredDescription
qstringYesSearch term (tx hash, wallet address, or partial). Max 200 chars
The endpoint auto-detects the input type:
Detected typeMatch rule
address_evm0x[40 hex] — exact match against from_address or to_address
address_thorthor1[bech32] — same
address_mayamaya1[bech32] — same
address_btcbc1..., 1..., 3... — same
address_ltcltc1..., L..., M... — same
address_dogeDogecoin format — same
address_near*.near or 64-hex implicit account — same
address_cosmoskujira1..., osmo1..., cosmos1... — same
tx_hashFalls through if not an address — exact then partial ilike match
textLast-resort partial match against either address column

Response

Success (200) — wallet hit

When the input is a recognized wallet address, the response includes a wallet_summary:
{
  "data": [ /* up to 50 ExplorerTransaction objects */ ],
  "count": 50,
  "search_type": "address_evm",
  "wallet_summary": {
    "total_volume_usd": 482015.67,
    "transaction_count": 122,
    "first_seen": "2025-08-15T09:14:22.000Z"
  }
}

Success (200) — tx-hash hit

{
  "data": [ /* up to 20 ExplorerTransaction objects */ ],
  "count": 1,
  "search_type": "tx_hash"
}

Success (200) — no results

{ "data": [], "count": 0, "search_type": "tx_hash" }

Errors

StatusDescription
400Missing q parameter or q longer than 200 chars

Examples

# Wallet address
curl "https://api.leokit.dev/leokit/explorer/search?q=0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"

# Transaction hash
curl "https://api.leokit.dev/leokit/explorer/search?q=0xabc123..."

# Partial address (text search)
curl "https://api.leokit.dev/leokit/explorer/search?q=742d35"

Query Parameters

q
string
required
Maximum string length: 200

Response

200 - application/json

Matching swap rows.

data
object[]
required
count
integer
required
search_type
string
required
wallet_summary
object