GET
/
v0
/
morpho
/
vaults
from compass_api_sdk import CompassAPI, models


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.morpho.vaults(chain=models.MorphoVaultsChain.ETHEREUM_MAINNET)

    # Handle response
    print(res)
{
  "vaults": [
    {
      "address": "<string>",
      "symbol": "<string>",
      "name": "<string>",
      "creationBlockNumber": 123,
      "creationTimestamp": 123,
      "creatorAddress": "<string>",
      "whitelisted": true,
      "asset": {
        "symbol": "<string>",
        "address": "<string>",
        "decimals": 123,
        "chain": {
          "id": 123,
          "network": "<string>"
        }
      },
      "chain": {
        "id": 123,
        "network": "<string>"
      },
      "state": {
        "id": "<string>",
        "apy": 123,
        "netApy": 123,
        "totalAssets": 123,
        "totalAssetsUsd": 123,
        "fee": 123,
        "timelock": 123
      }
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:ethereum:mainnet
required
Available options:
ethereum:mainnet,
base:mainnet
deposit_token
string | null
default:0xdAC17F958D2ee523a2206206994597C13D831ec7

Token address that will filter vaults by this deposit token.

Response

200
application/json

Successful Response

The response is of type object.