Aller au contenu
GET /v1/policy

Every asset minted under a policy id

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/cardanotokens-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/cardanotokens-api/v1/policy" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cardanotokens-api/v1/policy", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cardanotokens-api/v1/policy");
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/cardanotokens-api/v1/policy",
    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": "Every native asset minted under this policy id, with each asset's name, fingerprint and total supply. A policy can mint one token (fungible) or a whole NFT collection. Omit policy_id for a registry token's policy.",
        "count": 5,
        "assets": [
            {
                "name": "gov",
                "decimals": 0,
                "asset_name": "676f76",
                "fingerprint": "asset1mjndvgwq7trnqwlrc8wlsnxdm2n2djeenprgak",
                "total_supply": "0"
            },
            {
                "name": "p_MIDAS",
                "decimals": 0,
                "asset_name": "705f4d49444153",
                "fingerprint": "asset1snjmahe5p7dyasr34wt8a6lvyh9tfsyf4qe376",
                "total_supply": "1"
            },
            {
                "name": null,
                "decimals": 0,
                "asset_name": "",
                "fingerprint": "asset1pc0qzgrzqrrfc56lwhcl6n996c0smaywlxvcfd",
                "total_supply": "4"
            },
            {
                "name": "MIDAS",
                "decimals": 9,
                "asset_name": "4d49444153",
                "fingerprint": "asset17nkk7q20qefetcu4er9l0pt4jlmnarfz2ccwa4",
                "total_supply": "16262396157"
            },
            {
                "name": "STK",
                "decimals": 0,
                "asset_name": "53544b",
                "fingerprint": "asset1h4rzmdnga6k2a5v79ax6m77ndzdf0zlczgdv2l",
                "total_supply": "9"
            }
        ],
        "source": "Koios",
        "policy_id": "00000000000410c2d9e01e8ec78ab1dc6bbc383fae76cbe2689beb02"
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:27.011Z",
        "request_id": "a1ac3f03-e034-43e0-af41-273f066caa14"
    },
    "status": "ok",
    "message": "Policy assets retrieved successfully",
    "success": true
}