/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/xai-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/xai-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/xai-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/xai-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": "0x00000000000000000000000000000000000A4B05",
"from": "0x00000000000000000000000000000000000A4B05",
"hash": "0x3ea8a250cfddf9f4579a2b3f80498764f393ef3398280af3e6a31683f00f4e63",
"type": 106,
"block": 131028399,
"nonce": 0,
"method": "startBlock",
"status": "ok",
"fee_wei": "0",
"fee_xai": 0,
"gas_used": 0,
"gas_price": "100000000",
"timestamp": "2026-06-08T01:55:09.000000Z",
"value_wei": "0",
"value_xai": 0,
"confirmations": 20887
}
},
"meta": {
"timestamp": "2026-06-08T09:51:29.232Z",
"request_id": "454cbcb6-36b3-490b-988a-5da441db1c1c"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}