Naar de inhoud
GET /v1/transaction

A transaction by hash

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/katana-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/katana-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/katana-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/katana-api/v1/transaction");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/katana-api/v1/transaction",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "transaction": {
            "to": "0x4200000000000000000000000000000000000015",
            "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
            "hash": "0xb5256fe2c9d1b8950484c3ca86fcf50bd011e0a472a3dea20a5b8acfad567cc1",
            "type": 126,
            "block": 34145767,
            "nonce": 34145768,
            "method": "setL1BlockValuesJovian",
            "status": "ok",
            "fee_eth": 4.626e-15,
            "fee_wei": "4626",
            "gas_used": 46266,
            "gas_price": "0",
            "timestamp": "2026-06-08T03:16:18.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 23655
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:32.323Z",
        "request_id": "9d21291d-b1be-40ed-835f-922424bd2bb4"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}