Aller au contenu
GET /v1/chains

Chains Morpho runs on

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/morpho-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/morpho-api/v1/chains" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/morpho-api/v1/chains", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/morpho-api/v1/chains");
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/morpho-api/v1/chains",
    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": {
        "count": 7,
        "chains": [
            {
                "name": "Ethereum",
                "chain_id": 1
            },
            {
                "name": "Optimism",
                "chain_id": 10
            },
            {
                "name": "Unichain",
                "chain_id": 130
            },
            {
                "name": "Polygon",
                "chain_id": 137
            },
            {
                "name": "Base",
                "chain_id": 8453
            },
            {
                "name": "Arbitrum",
                "chain_id": 42161
            },
            {
                "name": "Katana",
                "chain_id": 747474
            }
        ],
        "source": "Morpho"
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:08.265Z",
        "request_id": "915e4f65-624b-485e-9ec4-94917f978c49"
    },
    "status": "ok",
    "message": "Chains retrieved successfully",
    "success": true
}