/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/rootstock-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rootstock-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rootstock-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/rootstock-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": "0x0000000000000000000000000000000001000008",
"from": "0x0000000000000000000000000000000000000000",
"hash": "0xcb8ec7d6e028e47a51ddaad38190e4659b92d95eebde254359a3bfb9619d5230",
"type": 0,
"block": 8922536,
"nonce": 8922535,
"method": null,
"status": "ok",
"fee_eth": 0,
"fee_wei": "0",
"gas_used": 0,
"gas_price": "0",
"timestamp": "2026-06-08T00:54:31.000000Z",
"value_eth": 0,
"value_wei": "0",
"confirmations": 59
}
},
"meta": {
"timestamp": "2026-06-08T01:18:15.074Z",
"request_id": "ab5f377c-e227-40be-bd9b-f13288b5d2f9"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}