/v1/transaction
Transaction with status and fee
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/starknet-api/v1/transaction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/starknet-api/v1/transaction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/starknet-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/starknet-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": {
"hash": "0x505139a5093358d46be55823a3675139d5cbb1da45424e393cd2b17aebde10b",
"type": "INVOKE",
"nonce": 269223,
"source": "Starknet",
"version": "0x3",
"fee_unit": "FRI",
"actual_fee": 0.115675,
"event_count": 5,
"block_number": 10660000,
"sender_address": "0x293bff00bca702b1a495185a7d0670617296d44c4525f621683546a8b4ce1cc",
"finality_status": "ACCEPTED_ON_L1",
"execution_status": "SUCCEEDED"
},
"meta": {
"timestamp": "2026-06-10T14:02:15.905Z",
"request_id": "6cc326d5-a60a-4c52-9379-6ab04920a2d8"
},
"status": "ok",
"message": "Transaction retrieved successfully",
"success": true
}