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/shape-api

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/shape-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shape-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shape-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/shape-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": "0x71f24aa2768e5d140304802b5d7dc53106f7053d732b75a8fb257eb327455481",
            "type": 126,
            "block": 29569054,
            "nonce": 29569056,
            "method": "setL1BlockValuesJovian",
            "status": "ok",
            "fee_eth": 0,
            "fee_wei": "0",
            "gas_used": 46242,
            "gas_price": "0",
            "timestamp": "2026-06-08T01:36:19.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 14859
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:38.570Z",
        "request_id": "73817d92-c33e-4515-86f5-9a6d39cc8ff6"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}