Vai al contenuto
GET /v1/transaction

A transaction by hash

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/kcc-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/kcc-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/kcc-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/kcc-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/kcc-api/v1/transaction",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "transaction": {
            "to": "0xe75b8525604dF746232c63BC0E831b323400A22F",
            "from": "0x306BBa4971c5eF86d6E1A178BaaD0155ad4A30Aa",
            "hash": "0xfe44441baba3fe5bbe88c8b85138533b29873028a0c913ffdc06501930f2b889",
            "type": 0,
            "block": 52783788,
            "nonce": 1054305,
            "method": "transmit",
            "status": "ok",
            "fee_kcs": 7.6137e-5,
            "fee_wei": "76137000000000",
            "gas_used": 76137,
            "gas_price": "1000000000",
            "timestamp": "2026-06-08T05:37:06.000000Z",
            "value_kcs": 0,
            "value_wei": "0",
            "confirmations": 5051
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:37.726Z",
        "request_id": "a65697ff-c600-4540-bff4-1272ebaa740a"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}