/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/bitfinity-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitfinity-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitfinity-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/bitfinity-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": "0xAf322c10333d27F47260Fa94dF1d2d74edaeeE57",
"from": "0xcf7A8614ac717c440cA407B6fe61799cD7B4ccb3",
"hash": "0xaa64e1db60bd1d480c9ede3d59108ed619ed58e24da9e947e2a4aab45df16195",
"type": 2,
"block": 11543965,
"nonce": 28,
"method": "0x3ac923bb",
"status": "ok",
"fee_bft": 1.2714226759863656,
"fee_wei": "1271422675986365649",
"gas_used": 3700327,
"gas_price": "343597383687",
"timestamp": "2026-05-20T09:57:26.000000Z",
"value_bft": 159001.91999999998,
"value_wei": "159001920000000000000000",
"confirmations": 133608
}
},
"meta": {
"timestamp": "2026-06-08T09:50:01.378Z",
"request_id": "19f77142-4b0c-491d-a160-ee4cb55d9347"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}