import{Clusters}from"@clustersxyz/sdk"// 3 different examplesconstclusters=newClusters();// with testnet enabledconstclusters=newClusters({isTestnet:true}) // with api keyconstclusters=newClusters({apiKey:"abc123"});
Helper functions & variables
validNameRegex
The regex for a valid cluster name
getImageUrl(name)
Get's the profile pfp url of a specific cluster name
getProfileUrl(name)
Get's the profile url of a cluster name
normalizeName(name)
Will clean up the name for onchain submission
isNameValid(name)
Checks if the name is a valid name and will be accepted on chain