Aller au contenu
GET /v1/stacking

Live Proof-of-Transfer stacking state and reward cycle

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/stacks-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/stacks-api/v1/stacking" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stacks-api/v1/stacking", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stacks-api/v1/stacking");
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/stacks-api/v1/stacking",
    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": {
        "source": "Stacks",
        "next_cycle": {
            "id": 137,
            "stacked_stx": 115932029.96357,
            "min_threshold_stx": 120000,
            "blocks_until_start": 639
        },
        "stacked_stx": 504262340.623865,
        "is_pox_active": true,
        "current_cycle_id": 136,
        "min_threshold_stx": 130000,
        "stacked_ratio_pct": 27.28,
        "reward_cycle_length": 2100,
        "total_liquid_supply_stx": 1848441120.01581
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:26.087Z",
        "request_id": "64daacb6-3fad-4451-b671-253992e07196"
    },
    "status": "ok",
    "message": "Stacking state retrieved successfully",
    "success": true
}