/v1/transaction
A transaction by hash
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/swell-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/swell-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/swell-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/swell-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": "0x9852a40bed7b1b9d5269497fc2229636f12fd3ab91334c54d058d7117bfbff83",
"type": 126,
"block": 24092728,
"nonce": 24092729,
"method": "0x3db6be2b",
"status": "ok",
"fee_eth": 0,
"fee_wei": "0",
"gas_used": 46230,
"gas_price": "0",
"timestamp": "2026-06-08T01:29:19.000000Z",
"value_eth": 0,
"value_wei": "0",
"confirmations": 15073
}
},
"meta": {
"timestamp": "2026-06-08T09:51:46.475Z",
"request_id": "8f500dc5-09ba-4423-9728-132599c63c6b"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}