Aller au contenu
GET /v1/account

An address available, stacked and total STX

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/account" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stacks-api/v1/account", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stacks-api/v1/account");
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/account",
    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",
        "address": "SPE3481ZKSV7AT33BG20J7ZYMKG61V36W7M987KV",
        "balance_stx": 17.898745,
        "is_stacking": false,
        "available_stx": 17.898745,
        "total_sent_stx": 34.114,
        "miner_rewards_stx": 0,
        "locked_stacked_stx": 0,
        "total_received_stx": 60.2447,
        "unlock_burn_height": null,
        "total_fees_sent_stx": 8.231955
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:25.192Z",
        "request_id": "d73dbdd5-d85c-4e39-84d5-3d640ef40b50"
    },
    "status": "ok",
    "message": "Account retrieved successfully",
    "success": true
}