Skip to main content
GET
/
explorer
/
tx
/
{id}
Transaction detail
curl --request GET \
  --url https://api.leokit.dev/explorer/tx/{id}
{
  "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>",
    "scanner_url": "<string>",
    "related_txs": [
      {
        "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>"
      }
    ]
  }
}

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/tx/{id}
{id} is the swap row id or transaction hash. As a fallback, you can pass ?tx_hash=0x... to look up by hash without using the path segment. No authentication required.

Response

Success (200)

{
  "data": {
    "id": "01953c9a-...",
    "tx_hash": "0xabc...",
    "from_asset": "ETH.USDC-0xA0b...",
    "to_asset": "BTC.BTC",
    "from_address": "0x1234...",
    "to_address": "bc1q...",
    "volume_usd": 1234.56,
    "protocol": "thorchain",
    "swap_date": "2026-04-28T12:00:00.000Z",
    "from_symbol": "USDC",
    "to_symbol": "BTC",
    "from_chain": "ETH",
    "to_chain": "BTC",
    "scanner_url": "https://etherscan.io/tx/0xabc...",
    "related_txs": [
      /* up to 5 ExplorerTransaction objects from the same `from_address` */
    ]
  }
}
FieldDescription
scanner_urlNative chain scanner URL for tx_hash (Etherscan, mempool.space, etc.)
related_txsUp to 5 most recent other swaps from the same from_address
The base fields match ExplorerTransaction (see overview).

Errors

StatusDescription
400Missing id path parameter and no tx_hash query
404No row matched id or tx_hash

Examples

# By tx hash (path)
curl "https://api.leokit.dev/leokit/explorer/tx/0xabc..."

# By tx hash (query)
curl "https://api.leokit.dev/leokit/explorer/tx/x?tx_hash=0xabc..."

# By internal swap id
curl "https://api.leokit.dev/leokit/explorer/tx/01953c9a-..."

Path Parameters

id
string
required

Query Parameters

tx_hash
string

Alternative to {id} path segment.

Response

200 - application/json

Single transaction with related-tx context.

data
object
required