Skip to main content
GET
/
explorer
/
search
Explorer search (tx hash or wallet)
curl --request GET \
  --url https://api.leokit.dev/explorer/search
import requests

url = "https://api.leokit.dev/explorer/search"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.leokit.dev/explorer/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leokit.dev/explorer/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.leokit.dev/explorer/search"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.leokit.dev/explorer/search")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.leokit.dev/explorer/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "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"
  }
}

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