Cluster → Metadata

getCluster(clusterName)

Get the cluster from a cluster name

const cluster = await clusters.getCluster('clusters/');

Returns

{
  "name": "clusters/",
  "profileUrl": "https://clusters.xyz/clusters",
  "imageUrl": "https://cdn.clusters.xyz/profile/clusters",
  "hasCustomImage": false,
  "wallets": [
    {
      "type": "evm",
      "address": "0x5755d1dcea21caa687339c305d143e6e78f96adf",
      "name": "clusters/main",
      "isVerified": true
    }
  ]
}

getClusters(clusterName[])

Get the clusters from a list of cluster names

const clusters = await clusters.getClusters([
    "clusters/", 
    "layerzero/"
]);

Returns

[
  {
    "name": "clusters/",
    "profileUrl": "https://clusters.xyz/clusters",
    "imageUrl": "https://cdn.clusters.xyz/profile/clusters",
    "hasCustomImage": false,
    "wallets": [
      {
        "name": "clusters/main",
        "type": "evm",
        "address": "0x5755d1dcea21caa687339c305d143e6e78f96adf",
        "isVerified": true
      }
    ]
  },
  {
    "name": "layerzero/",
    "profileUrl": "https://clusters.xyz/layerzero",
    "imageUrl": "https://cdn.clusters.xyz/profile/layerzero",
    "hasCustomImage": true,
    "wallets": [
      {
        "name": "layerzero/main",
        "type": "evm",
        "address": "0xccdead94e8cf17de32044d9701c4f5668ad0bef9",
        "isVerified": true
      }
    ]
  }
]

Last updated