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/neon-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/neon-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/neon-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/neon-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/neon-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": "0xBb5e1777A331ED93E07cF043363e48d320eb96c4",
            "from": "0x40068FA5135E2D9276C5F27A4f308aAF572FE04F",
            "hash": "0x3c207053fb1917d74cdd1521ce15e3a2f64d656f3a4b0dfd8a1cdf903a61a421",
            "type": 0,
            "block": 425049434,
            "nonce": 3862,
            "method": "swapExactETHForTokens",
            "status": "ok",
            "fee_wei": "76975621803658140",
            "fee_neon": 0.07697562180365815,
            "gas_used": 16773,
            "gas_price": "4589257843180",
            "timestamp": "2026-06-08T05:41:13.000000Z",
            "value_wei": "1290455799315033981",
            "value_neon": 1.2904557993150338,
            "confirmations": 37407
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:34.624Z",
        "request_id": "99ef0346-ea30-4afb-a31a-7f1678c01d29"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}