Aller au contenu
GET /v1/staking

Bonded/unbonded tokens, bonded ratio, inflation

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/cosmoschain-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/cosmoschain-api/v1/staking" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cosmoschain-api/v1/staking", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cosmoschain-api/v1/staking");
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/cosmoschain-api/v1/staking",
    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": {
        "note": "Network staking state: bonded vs not-bonded tokens (in the chain's base denom), the bonded ratio, and current inflation. Some chains do not run the mint module, so inflation can be null.",
        "chain": "cosmoshub",
        "source": "Cosmos LCD",
        "inflation": 0.1,
        "bond_denom": "uatom",
        "bonded_ratio": 0.9527149386940329,
        "bonded_tokens": "320640054024365",
        "inflation_pct": 10,
        "max_validators": 200,
        "unbonding_time": "1814400s",
        "not_bonded_tokens": "15913978038881"
    },
    "meta": {
        "timestamp": "2026-06-14T08:03:55.441Z",
        "request_id": "6059e2ff-f903-4ed7-973b-26761e45a70b"
    },
    "status": "ok",
    "message": "Staking retrieved successfully",
    "success": true
}