Aller au contenu
GET /v1/coin

A coin type's on-chain metadata

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/suinetwork-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/suinetwork-api/v1/coin" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/suinetwork-api/v1/coin", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/suinetwork-api/v1/coin");
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/suinetwork-api/v1/coin",
    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": {
        "name": "Sui",
        "note": "On-chain metadata for a Sui coin type — its name, symbol, decimals, description and icon. Every Sui coin is a typed Move object (e.g. 0x2::sui::SUI); pass coin_type for any coin, or omit for native SUI.",
        "source": "Sui RPC",
        "symbol": "SUI",
        "decimals": 9,
        "icon_url": null,
        "coin_type": "0x2::sui::SUI",
        "description": null,
        "metadata_object_id": "0xf256d3fb6a50eaa748d94335b34f2982fbc3b63ceec78cafaa29ebc9ebaf2bbc"
    },
    "meta": {
        "timestamp": "2026-06-14T17:03:47.377Z",
        "request_id": "bc4737b3-bf56-494c-acec-f5a876f0a2e8"
    },
    "status": "ok",
    "message": "Coin metadata retrieved successfully",
    "success": true
}