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/vanar-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/vanar-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/vanar-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/vanar-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/vanar-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": "0x41Ef42Ea477CA0c6adced91F0A2C2FA7C97CCD25",
            "from": "0x9b23180f6AE8aD7862E4F6DF9Cc847dB47727b71",
            "hash": "0xd91635110462c8f899638ba99b4059f710d9b71a618b510d5dd5426e03d0ae42",
            "type": 0,
            "block": 22968766,
            "nonce": 168515,
            "method": "setDelegatorRewards",
            "status": "ok",
            "fee_wei": "233224000000000",
            "gas_used": 233224,
            "fee_vanry": 0.000233224,
            "gas_price": "1000000000",
            "timestamp": "2026-06-08T06:18:04.000000Z",
            "value_wei": "0",
            "value_vanry": 0,
            "confirmations": 4225
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:21.512Z",
        "request_id": "1ea00526-a912-4e4f-9edd-5d6dda315695"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}