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/energyweb-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/energyweb-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/energyweb-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/energyweb-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/energyweb-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": "0x1204700000000000000000000000000000000000",
            "from": "0x4c8FC2cAd90bEE5332E887d3c9184424E76b11E0",
            "hash": "0x77e3a8debb3a7d18757f9408944807d029511f7db5aadf3be57df5ca8ae6dc3c",
            "type": 0,
            "block": 41254767,
            "nonce": 2100169,
            "method": "0xd69f13bb",
            "status": "ok",
            "fee_ewt": 3.99124e-7,
            "fee_wei": "399124000000",
            "gas_used": 36284,
            "gas_price": "11000000",
            "timestamp": "2026-06-08T05:10:00.000000Z",
            "value_ewt": 0,
            "value_wei": "0",
            "confirmations": 2595
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:49.263Z",
        "request_id": "1f02ab94-ba28-4662-a9ca-caa4cb326cd6"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}