Zum Inhalt springen
GET /v1/transaction

A transaction by hash

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/energi-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/energi-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/energi-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/energi-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/energi-api/v1/transaction",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "transaction": {
            "to": "0x0000000000000000000000000000000000000302",
            "from": "0x2f4454AD6b870548F4D01c6e2fC6326753adC2Bb",
            "hash": "0xf3e2c800afb4c32f764a70702aa585451ba740b2b11c60461a11ee36f941313d",
            "type": null,
            "block": 3282514,
            "nonce": 2813,
            "method": "0x91ceac96",
            "status": "ok",
            "fee_nrg": 0,
            "fee_wei": "0",
            "gas_used": 59660,
            "gas_price": "0",
            "timestamp": "2026-06-08T05:48:32.000000Z",
            "value_nrg": 0,
            "value_wei": "0",
            "confirmations": 240
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:32.463Z",
        "request_id": "ed48dda4-d591-45e7-a0ec-5561024c848f"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}