Explorer search (tx hash or wallet)
curl --request GET \
--url https://api.leokit.dev/explorer/searchimport 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"
}
}Explorer API
Search
Find swaps by transaction hash, wallet address, or partial match
GET
/
explorer
/
search
Explorer search (tx hash or wallet)
curl --request GET \
--url https://api.leokit.dev/explorer/searchimport 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
Request
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search term (tx hash, wallet address, or partial). Max 200 chars |
| Detected type | Match rule |
|---|---|
address_evm | 0x[40 hex] — exact match against from_address or to_address |
address_thor | thor1[bech32] — same |
address_maya | maya1[bech32] — same |
address_btc | bc1..., 1..., 3... — same |
address_ltc | ltc1..., L..., M... — same |
address_doge | Dogecoin format — same |
address_near | *.near or 64-hex implicit account — same |
address_cosmos | kujira1..., osmo1..., cosmos1... — same |
tx_hash | Falls through if not an address — exact then partial ilike match |
text | Last-resort partial match against either address column |
Response
Success (200) — wallet hit
When the input is a recognized wallet address, the response includes awallet_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
| Status | Description |
|---|---|
400 | Missing 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"
⌘I