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/lisk-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/lisk-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lisk-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lisk-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/lisk-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": "0x4200000000000000000000000000000000000015",
            "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
            "hash": "0x83412641505f295bd109a3e69175f0dff9da1dc24b1a9a677fae5930501a7d90",
            "type": 126,
            "block": 33077071,
            "nonce": 33077074,
            "method": "setL1BlockValuesJovian",
            "status": "ok",
            "fee_eth": 0,
            "fee_wei": "0",
            "gas_used": 46242,
            "gas_price": "0",
            "timestamp": "2026-06-08T01:42:13.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 14680
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:34.821Z",
        "request_id": "14422407-47e3-4898-870a-6f16e304d56f"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}