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/elastos-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/elastos-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/elastos-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/elastos-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/elastos-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": "0x5117b046517ffA18d4d9897090D0537fF62A844A",
            "from": "0xE241cc9d0c8ed86f64c9d98b55CC66aFda6eB50c",
            "hash": "0x3ce413674e8619c53a9f08e5f0cc9ec23bb6a4177bbce376d3f9d9161f01d2cd",
            "type": null,
            "block": 37059142,
            "nonce": 546812,
            "method": "0x24e48a2d",
            "status": "ok",
            "fee_ela": 0.003600775,
            "fee_wei": "3600775000000000",
            "gas_used": 144031,
            "gas_price": "25000000000",
            "timestamp": "2026-06-08T06:32:10.000000Z",
            "value_ela": 0,
            "value_wei": "0",
            "confirmations": 2168
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:15.914Z",
        "request_id": "a0d101b4-b422-4ebf-ba08-3d2ff5d0f9e4"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}