Paginated swap feed
curl --request GET \
--url https://api.leokit.dev/explorer/transactionsimport requests
url = "https://api.leokit.dev/explorer/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.leokit.dev/explorer/transactions', 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/transactions",
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/transactions"
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/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leokit.dev/explorer/transactions")
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>"
}
],
"has_more": true,
"next_cursor": "2023-11-07T05:31:56Z"
}Explorer API
Transactions
Paginated swap feed with chain and protocol filters
GET
/
explorer
/
transactions
Paginated swap feed
curl --request GET \
--url https://api.leokit.dev/explorer/transactionsimport requests
url = "https://api.leokit.dev/explorer/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.leokit.dev/explorer/transactions', 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/transactions",
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/transactions"
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/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leokit.dev/explorer/transactions")
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>"
}
],
"has_more": true,
"next_cursor": "2023-11-07T05:31:56Z"
}Endpoint
GET /leokit/explorer/transactions
Request
| Parameter | Type | Required | Description |
|---|---|---|---|
cursor | string | No | ISO timestamp from a previous next_cursor. Returns rows older than this |
limit | number | No | Page size, 1–100. Default 50 |
chain | string | No | Filter by source or destination chain (e.g. ETH, BTC) |
protocol | string | No | Filter by protocol slug (e.g. thorchain) |
Response
{
"data": [
/* up to `limit` ExplorerTransaction objects, newest first */
],
"next_cursor": "2026-04-28T11:42:18.000Z",
"has_more": true
}
| Field | Description |
|---|---|
data | Array of ExplorerTransaction (see overview) |
next_cursor | Pass to next request as cursor to fetch the next page. null when exhausted |
has_more | true if more rows exist after this page |
Errors
| Status | Description |
|---|---|
500 | Supabase query failure |
Pagination Pattern
let cursor = null;
do {
const url = new URL("https://api.leokit.dev/leokit/explorer/transactions");
url.searchParams.set("limit", "100");
if (cursor) url.searchParams.set("cursor", cursor);
const { data, next_cursor, has_more } = await fetch(url).then(r => r.json());
for (const tx of data) handle(tx);
cursor = next_cursor;
} while (cursor && has_more);
Examples
# Latest 50
curl "https://api.leokit.dev/leokit/explorer/transactions"
# Filter to BTC source/destination, 20 per page
curl "https://api.leokit.dev/leokit/explorer/transactions?chain=BTC&limit=20"
# Filter to Chainflip
curl "https://api.leokit.dev/leokit/explorer/transactions?protocol=chainflip"
# Next page
curl "https://api.leokit.dev/leokit/explorer/transactions?cursor=2026-04-28T11:42:18.000Z"
⌘I