/v1/transaction
A transaction by hash
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/unit0-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/unit0-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/unit0-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/unit0-api/v1/transaction",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"transaction": {
"to": "0x0000000000000000000000000000000000006A7e",
"from": "0xd65cF180721D31346aA4199dD110204287919507",
"hash": "0x38e4fe718bf2aa360fe49f25167d88d51004bd6ada314ab0e3439af2d93c943a",
"type": 0,
"block": 11712242,
"nonce": 535,
"method": "sendNative",
"status": "ok",
"fee_wei": "1202160",
"gas_used": 150270,
"fee_unit0": 1.20216e-12,
"gas_price": "8",
"timestamp": "2026-06-08T07:15:03.000000Z",
"value_wei": "176402231480000000000",
"value_unit0": 176.40223147999998,
"confirmations": 4103
}
},
"meta": {
"timestamp": "2026-06-08T09:48:53.344Z",
"request_id": "23bbf7f4-9e0b-4ea0-aa3f-7e99ea7d3305"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}