/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/shape-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shape-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shape-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/shape-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": "0x4200000000000000000000000000000000000015",
"from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
"hash": "0x71f24aa2768e5d140304802b5d7dc53106f7053d732b75a8fb257eb327455481",
"type": 126,
"block": 29569054,
"nonce": 29569056,
"method": "setL1BlockValuesJovian",
"status": "ok",
"fee_eth": 0,
"fee_wei": "0",
"gas_used": 46242,
"gas_price": "0",
"timestamp": "2026-06-08T01:36:19.000000Z",
"value_eth": 0,
"value_wei": "0",
"confirmations": 14859
}
},
"meta": {
"timestamp": "2026-06-08T09:51:38.570Z",
"request_id": "73817d92-c33e-4515-86f5-9a6d39cc8ff6"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}