Communities

Check name availability

Check the availability of a community cluster name

const isAvailable = await clusters.getCommunityNameAvailability("pengu/myname");

Response

{
  "name": "pengu/myname",
  "isAvailable": false
}

Register a community name

Check the availability of one or more clusters

Name
Description

communityName

The name of the community you are registering under

name

The name you want to register

autheToken

Authentication key

walletAddress (optional)

If you are the admin of the community, you can register on behalf of someone. If this is left out the name will be registered to the authenticated wallet

Example

const name = await clusters.registerCommunityCluster(
   "pengu", 
   "myname",
   AUTH_TOKEN
);

Response

{
  "clusterName": "pengu/myname",
  "owner": "0x123"
}

Last updated