This single address call is great for getting the name of a user's connected wallet or the name of an address on a profile page.
// This will return "clusters/main"constclusterWalletName=awaitclusters.getName('0x5755d1dcea21caa687339c305d143e6e78f96adf');// This will give you "clusters"constclusterName=clusterWalletName.split("/")[0];
Profile Information
You can use the following helper functions to help display the info you need. We offer 2 functions:
A synchronous function to get the profile image url of a cluster name
A function to navigate the user to their official clusters profile page on clusters.xyz
You can use the following helper functions to help display the info you need
Clusters are a multi-wallet username. Sometimes you will want to display the other wallets a cluster has. By passing in the cluster name, you'll be able to retrieve an array of wallets along with their type.
When people create a cluster, they can add multiple addresses to it. If you want to be able to display this information, you can call the following function.
This is useful if you have 2 or more addresses on a page that you want to retrieve a cluster name for. You can get all the information you need in one call.