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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "transaction": {
            "to": "0x0d2aFE7F72EabFaB68Edecc287893D9073863B6f",
            "from": "0x4566ED6c7a7fFc90E2C7cfF7eB9156262afD2fDe",
            "hash": "0x1da36071f2afc909907457f37c8cca18cbe8b01241dc3db89b11b90522cd39f0",
            "type": 0,
            "block": 210563303,
            "nonce": 40732331,
            "method": "workMyDirefulOwner",
            "status": "ok",
            "fee_eth": 0,
            "fee_wei": "0",
            "gas_used": 34230,
            "gas_price": "0",
            "timestamp": "2026-06-08T05:22:22.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 31813
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:45.963Z",
        "request_id": "72cb5213-ab3e-41bf-b564-02e47baff929"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}