Address → Cluster

getName(address)

Get the cluster and wallet name based on an address

const clusterName = await clusters.getName('0x5755d1dcea21caa687339c305d143e6e78f96adf');

Returns

clusters/main

getNames(address[])

Get the cluster and wallet names from a list of addresses

const clusterName = await clusters.getNames([
    '0x5755d1dcea21caa687339c305d143e6e78f96adf', 
    '0xccdead94e8cf17de32044d9701c4f5668ad0bef9'
])

Returns

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

Last updated