Aller au contenu
GET /v1/transaction

Transaction fee, size and outputs

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/litecoin-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/litecoin-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/litecoin-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/litecoin-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/litecoin-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": {
        "size": 223,
        "txid": "859f6c5ad3fb7ea02964ae77368a1f00c0d5659ebff3da9fa68d9083bc1fa3e0",
        "source": "Litecoin",
        "weight": 892,
        "fee_ltc": 0.00189663,
        "version": 2,
        "confirmed": true,
        "block_time": "2026-06-10T09:05:33.000Z",
        "fee_litoshi": 189663,
        "input_count": 1,
        "block_height": 3122602,
        "output_count": 2,
        "total_output_ltc": 1.34213304
    },
    "meta": {
        "timestamp": "2026-06-10T14:02:06.149Z",
        "request_id": "abb7a811-1935-4887-bd4a-455c45b019aa"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}