/v1/transaction
Transaction + receipt by hash
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/txlookup-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/txlookup-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/txlookup-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/txlookup-api/v1/transaction",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"to": "0x0000000aa232009084bd71a5797d089aa4edfad4",
"from": "0x5875db54cd9ae2b2a875e09bb731772297ae9d92",
"hash": "0xbaf480b3f5c4530e96b054b61feaa82eb86aa41401ef321675eebcf04651304e",
"chain": "ethereum",
"nonce": 48558,
"status": "success",
"fee_eth": "0.000020601216979068",
"explorer": "https://etherscan.io/tx/0xbaf480b3f5c4530e96b054b61feaa82eb86aa41401ef321675eebcf04651304e",
"gas_used": 155094,
"gas_limit": 358692,
"value_eth": "0",
"value_wei": "0",
"logs_count": 5,
"block_number": 25277272,
"confirmations": 2354,
"gas_price_gwei": 0.133,
"contract_created": null,
"input_size_bytes": 452,
"effective_gas_price_gwei": 0.133
},
"meta": {
"timestamp": "2026-06-09T11:39:53.738Z",
"request_id": "4bc82deb-1760-4faa-b9b9-0ce394021780"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}