Cluster → Address

getAddress(name)

Get the wallet associated to a cluster name. You can pass just the cluster name or also include the wallet name as shown in the 2 examples.

const clusterAddress_Option1 = await clusters.getAddress('clusters/');
const clusterAddress_Option2 = await clusters.getAddress('clusters/main');

Returns

{
  "type": "evm",
  "address": "0x5755d1dcea21caa687339c305d143e6e78f96adf",
  "name": "clusters/main",
  "isVerified": true
}

getAddresses(name[])

Get the wallets associated to multiple cluster names. You can pass just the cluster name or also include the wallet name.

const clusterAddresses = await clusters.getAddresses([
    "clusters/", 
    "clusters/main", 
    "layerzero/", 
    "layerzero/main"
]);

Returns

[
  {
    name: "clusters/",
    type: "evm",
    address: "0x5755d1dcea21caa687339c305d143e6e78f96adf",
    isVerified: true
  }, 
  {
    name: "clusters/main",
    type: "evm",
    address: "0x5755d1dcea21caa687339c305d143e6e78f96adf",
    isVerified: true
  }, 
  {
    name: "layerzero/",
    type: "evm",
    address: "0xccdead94e8cf17de32044d9701c4f5668ad0bef9",
    isVerified: true
  }, 
  {
    name: "layerzero/main",
    type: "evm",
    address: "0xccdead94e8cf17de32044d9701c4f5668ad0bef9",
    isVerified: true
  }
]

Last updated