Naar de inhoud
GET /v1/transaction

Transaction detail 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/zksync-api

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/zksync-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/zksync-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/zksync-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/zksync-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": "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",
            "from": "0x478ae7AEE3EC17379Cea71aD1a6C692eBB305622",
            "hash": "0x87332711fe9f527bd69ac8273c16736743893db3b1e83506409e70631330f660",
            "type": 2,
            "block": 30000000,
            "nonce": 47,
            "method": "OwnerTransferV7b711143",
            "status": "ok",
            "fee_eth": 3.6242e-6,
            "fee_wei": "3624200000000",
            "gas_used": 144968,
            "gas_price": "25000000",
            "timestamp": "2024-03-27T13:26:04.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 40613560
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:24.585Z",
        "request_id": "bcbe8c11-63e6-4de1-8948-da1e3bd04655"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}