Vai al contenuto
GET /v1/asset

Asset stats: supply, holders, flags, contract id

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/stellarasset-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/stellarasset-api/v1/asset" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stellarasset-api/v1/asset", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stellarasset-api/v1/asset");
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/stellarasset-api/v1/asset",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "On-chain stats for the issued asset from Horizon. supply is the total authorized balance; holders is the number of authorized accounts. flags show how the issuer controls the asset.",
        "flags": {
            "auth_required": false,
            "auth_immutable": false,
            "auth_revocable": true,
            "auth_clawback_enabled": false
        },
        "source": "Stellar Horizon",
        "supply": "237989931.6834145",
        "holders": 2232017,
        "asset_code": "USDC",
        "asset_type": "credit_alphanum4",
        "contract_id": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75",
        "asset_issuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
        "num_contracts": 31411,
        "liquidity_pools": "2552155.8032734",
        "contracts_amount": "42090356.8184738",
        "claimable_balances": "21796.2979538",
        "num_liquidity_pools": 1008
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:02.187Z",
        "request_id": "a04a51b0-b82b-43aa-930b-90dbfdb2a71a"
    },
    "status": "ok",
    "message": "Asset retrieved successfully",
    "success": true
}