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/vana-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/vana-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/vana-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/vana-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/vana-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": "0x3c2269811836af69497E5F486A85D7316753cf62",
            "from": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749",
            "hash": "0x1fe408d78867c1c16ff25809205c8a4659a1b322fcd9cdede1072d105b5dfaf7",
            "type": 0,
            "block": 8717007,
            "nonce": 1144721,
            "method": "0x3161b7f6",
            "status": "ok",
            "fee_wei": "643522864401282",
            "fee_vana": 0.000643522864401282,
            "gas_used": 38013,
            "gas_price": "16929020714",
            "timestamp": "2026-06-08T02:56:31.000000Z",
            "value_wei": "0",
            "value_vana": 0,
            "confirmations": 4139
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:53.655Z",
        "request_id": "f676954b-c94b-404a-9b2e-1a37bad6b94f"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}