Aller au contenu
GET /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.

En-têtes personnalisés (facultatif)
api.oanor.com/lumia-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/lumia-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lumia-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lumia-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/lumia-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": "0x7Bc4725aF5A40fBdee884BdE51baeA7aEcc10652",
            "from": "0x044A29248b4adbc4eE2Ba509C1558D3cE262AefF",
            "hash": "0x9dd33d7d1a4aca101bbcc3f3935cca34d7fa6670ef01994bb96acbc55234b062",
            "type": 0,
            "block": 17547574,
            "nonce": 3164554,
            "method": "0xd09de08a",
            "status": "ok",
            "fee_wei": "27374000191618",
            "gas_used": 27374,
            "fee_lumia": 2.7374000191618e-5,
            "gas_price": "1000000007",
            "timestamp": "2026-06-08T02:50:42.000000Z",
            "value_wei": "0",
            "value_lumia": 0,
            "confirmations": 8342
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:55.865Z",
        "request_id": "586a549f-f616-4f7e-b1f3-a553792b5a5a"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}