/v1/transaction
A transaction by hash
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/elastos-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/elastos-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/elastos-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/elastos-api/v1/transaction",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"transaction": {
"to": "0x5117b046517ffA18d4d9897090D0537fF62A844A",
"from": "0xE241cc9d0c8ed86f64c9d98b55CC66aFda6eB50c",
"hash": "0x3ce413674e8619c53a9f08e5f0cc9ec23bb6a4177bbce376d3f9d9161f01d2cd",
"type": null,
"block": 37059142,
"nonce": 546812,
"method": "0x24e48a2d",
"status": "ok",
"fee_ela": 0.003600775,
"fee_wei": "3600775000000000",
"gas_used": 144031,
"gas_price": "25000000000",
"timestamp": "2026-06-08T06:32:10.000000Z",
"value_ela": 0,
"value_wei": "0",
"confirmations": 2168
}
},
"meta": {
"timestamp": "2026-06-08T09:49:15.914Z",
"request_id": "a0d101b4-b422-4ebf-ba08-3d2ff5d0f9e4"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}