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/soneium-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/soneium-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/soneium-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/soneium-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/soneium-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": "0x4200000000000000000000000000000000000006",
            "from": "0x98C052f20379341B963b701076e3583007D7a501",
            "hash": "0x6283f9beb0e3ac1da1846d8a42beebcc14a6cb1923439acb9206642db7a4fa4d",
            "type": 2,
            "block": 23872875,
            "nonce": 3425,
            "method": "deposit",
            "status": "ok",
            "fee_eth": 3.301464233e-9,
            "fee_wei": "3301464233",
            "gas_used": 27832,
            "gas_price": "455",
            "timestamp": "2026-06-08T01:01:41.000000Z",
            "value_eth": 8.0378e-14,
            "value_wei": "80378",
            "confirmations": 495
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:11.665Z",
        "request_id": "f4be6e70-d56a-4864-b681-24969d243d96"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}