/v1/transaction
A transaction by hash
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/goat-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/goat-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/goat-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/goat-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": "0x3c2269811836af69497E5F486A85D7316753cf62",
"from": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749",
"hash": "0x8da6b62132615bdecd207bc1b7b72dc0a09c43ddaf4e4df67a027fcae0be2d79",
"type": 0,
"block": 12919634,
"nonce": 486823,
"method": "0x3161b7f6",
"status": "ok",
"fee_btc": 5.92284372e-9,
"fee_wei": "5922843720",
"gas_used": 37965,
"gas_price": "156008",
"timestamp": "2026-06-08T03:50:59.000000Z",
"value_btc": 0,
"value_wei": "0",
"confirmations": 6299
}
},
"meta": {
"timestamp": "2026-06-08T09:50:15.553Z",
"request_id": "94a76a90-d490-4856-b1f3-2721623791ad"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}