Aller au contenu
GET /v1/network

Live TRON chain state

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/tron-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/tron-api/v1/network" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tron-api/v1/network", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tron-api/v1/network");
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/tron-api/v1/network",
    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": {
        "block": 83445298,
        "source": "TRON",
        "version": 35,
        "block_id": "0000000004f94632143bc44d3e3bee24877b930ebacdf207046e80c71c23941e",
        "timestamp": "2026-06-09T11:38:06.000Z",
        "witness_address": "411c8163d2a981b90481dcc8ca34c0f837b3305bc6",
        "transaction_count": 1105
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:11.352Z",
        "request_id": "56a4a35d-80a3-4ec1-bf5f-d8b380f8d219"
    },
    "status": "ok",
    "message": "Network state retrieved successfully",
    "success": true
}