/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/story-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/story-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/story-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/story-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": "0x74Aa6977536F498c5aD4F30C02718c6C1988a112",
"from": "0x8878B54aE0C37a5319C0e639D308740C65e7368F",
"hash": "0x47781130eff7bea23f660db17b206c7262723c1c07a2ca3a85bdceb74086d508",
"type": 0,
"block": 18383795,
"nonce": 5696436,
"fee_ip": 0.000353689640469738,
"method": "0xdd10b14e",
"status": "ok",
"fee_wei": "353689640469738",
"gas_used": 58698,
"value_ip": 0,
"gas_price": "6025582481",
"timestamp": "2026-06-08T02:26:56.000000Z",
"value_wei": "0",
"confirmations": 12301
}
},
"meta": {
"timestamp": "2026-06-08T09:51:12.539Z",
"request_id": "2171f5a4-f06e-4fc4-9441-e840a37f414a"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}