/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/electroneum-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/electroneum-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/electroneum-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/electroneum-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": "0x7CB0C78C4FBc4de54544ebd101FAAC4771DEdC70",
"from": "0x720A1c84cf8D6F0b55202C8A650382785655aa06",
"hash": "0x9d337a3899d3421b22d96726530aa0ea8a6c85a0806bf097175efc418fc96878",
"type": 2,
"block": 14158506,
"nonce": 430,
"method": null,
"status": "ok",
"fee_etn": 2.1000000147e-5,
"fee_wei": "21000000147000",
"gas_used": 21000,
"gas_price": "1000000007",
"timestamp": "2026-06-08T06:25:29.000000Z",
"value_etn": 9.11982236211444,
"value_wei": "9119822362114439922",
"confirmations": 2446
}
},
"meta": {
"timestamp": "2026-06-08T09:49:18.880Z",
"request_id": "d2f768e2-942d-423a-bae1-0eb8231eb06d"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}