/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/kcc-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/kcc-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/kcc-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/kcc-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": "0xe75b8525604dF746232c63BC0E831b323400A22F",
"from": "0x306BBa4971c5eF86d6E1A178BaaD0155ad4A30Aa",
"hash": "0xfe44441baba3fe5bbe88c8b85138533b29873028a0c913ffdc06501930f2b889",
"type": 0,
"block": 52783788,
"nonce": 1054305,
"method": "transmit",
"status": "ok",
"fee_kcs": 7.6137e-5,
"fee_wei": "76137000000000",
"gas_used": 76137,
"gas_price": "1000000000",
"timestamp": "2026-06-08T05:37:06.000000Z",
"value_kcs": 0,
"value_wei": "0",
"confirmations": 5051
}
},
"meta": {
"timestamp": "2026-06-08T09:49:37.726Z",
"request_id": "a65697ff-c600-4540-bff4-1272ebaa740a"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}