Naar de inhoud
GET /v1/assets

All issuers of an asset code, sorted by holders

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/stellarasset-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "code": "USDC",
        "note": "Issuers of this asset code on the network (up to `limit`, sorted by holders within the returned page). Anyone can issue an asset with any code, so the same code often has many issuers — use this to survey them and spot impersonators; always verify the exact issuer account.",
        "count": 20,
        "limit": 20,
        "assets": [
            {
                "flags": {
                    "auth_required": false,
                    "auth_immutable": false,
                    "auth_revocable": true,
                    "auth_clawback_enabled": false
                },
                "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
            },
            {
                "flags": {
                    "auth_required": false,
                    "auth_immutable": false,
                    "auth_revocable": false,
                    "auth_clawback_enabled": false
                },
                "supply": "998548.3525583",
                "holders": 897,
                "asset_code": "USDC",
                "asset_type": "credit_alphanum4",
                "contract_id": null,
                "asset_issuer": "GA73UDEUTZQYSYC52THC6GMYRZGZ2N4TYMBKIPGPJLM5436RFKVSUSDC",
                "num_contracts": 0,
                "liquidity_pools": "311.4353726",
                "contracts_amount": "0.0000000",
                "claimable_balances": "0.0000857",
                "num_liquidity_pools": 5
            },
            {
                "flags": {
                    "auth_required": false,
                    "auth_immutable": false,
                    "auth_revocable": false,
                    "auth_clawback_enabled": false
                },
                "supply": "2998817503.0230629",
                "holders": 456,
                "asset_code": "USDC",
                "asset_type": "credit_alphanum4",
                "contract_id": null,
                "asset_issuer": "GA3WU6UPBON23ZLI6WW4IFMJVOE2TLVHNPRCAJ43MVZI5DVO5KU7MLHH",
                "num_contracts": 0,
                "liquidity_pools": "0.0000000",
                "contracts_amount": "0.0000000",
                "claimable_balances": "19771.3668834",
                "num_liquidity_pools": 0
            },
            {
                "flags": {
                    "auth_required": false,
                    "auth_immutable": false,
                    "auth_revocable": false,
  
…