Skip to main content
GET
/
explorer
/
transactions
Paginated swap feed
curl --request GET \
  --url https://api.leokit.dev/explorer/transactions
import 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
No authentication required.

Request

ParameterTypeRequiredDescription
cursorstringNoISO timestamp from a previous next_cursor. Returns rows older than this
limitnumberNoPage size, 1–100. Default 50
chainstringNoFilter by source or destination chain (e.g. ETH, BTC)
protocolstringNoFilter 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
}
FieldDescription
dataArray of ExplorerTransaction (see overview)
next_cursorPass to next request as cursor to fetch the next page. null when exhausted
has_moretrue if more rows exist after this page

Errors

StatusDescription
500Supabase 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"

Query Parameters

cursor
string<date-time>
limit
integer
default:50
Required range: 1 <= x <= 100
chain
string
protocol
string

Response

200 - application/json

Page of transactions plus pagination info.

data
object[]
required
has_more
boolean
required
next_cursor
string<date-time> | null