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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "transaction": {
            "to": "0x4200000000000000000000000000000000000015",
            "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
            "hash": "0xcb03262037a84507bb4555c583ecc750ea965a83a695d92619ef11a99cfed1bd",
            "type": 126,
            "block": 34009906,
            "nonce": 34009909,
            "method": "setL1BlockValuesJovian",
            "status": "ok",
            "fee_eth": 1.5e-5,
            "fee_wei": "15000000000000",
            "gas_used": 46302,
            "gas_price": "0",
            "timestamp": "2026-06-08T01:23:19.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 15255
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:49.855Z",
        "request_id": "366b3b80-6b38-46f2-99f4-258f09b6d749"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}