Clusters
Create a Cluster
Create a cluster
authToken
Example
const data = await clusters.createCluster(authToken);Response
{
"id": "0x000049d953f88ab10f1b2778275028894602c41bbe6ea42bf46695d4edc5b6d6",
}Cluster by ID
Get the cluster from an id
id
ID of cluster
Example
const cluster = await clusters.getClusterById(id);Response
{
"id": "0xa8d12b92b91fe0db3651ff2d45c1f47b1bb343054e9cd1e556c73f2330269224",
"createdBy": "0x5cff9c1362a71247da33887be2a44ac36a8724bb",
"createdAt": "2024-02-14 21:39:05+00",
"wallets": [
{
"address": "0x5cff9c1362a71247da33887be2a44ac36a8724bb",
"name": "main",
"isVerified": true,
"isPrivate": false,
"isBackedUp": false,
"updatedAt": "2024-02-09 15:21:22+00",
"updatedBy": "0x5cff9c1362a71247da33887be2a44ac36a8724bb",
"createdAt": "2024-02-09 15:21:22+00"
}
],
"isTestnet": false
}Cluster by Name
Get the cluster from a name
name
Cluster name
Example
Response
Cluster ID by address
Get the cluster from an id
address
Verified address of a cluster
Example
Response
Add wallets
Add wallets to the cluster the authenticated wallet is in
wallets
{ address: string, name: string, isPrivate: boolean }[]
authToken
Example
Response
Generate wallet
Generate a wallet in a cluster that the authenticated wallet is in
wallets
{ address: string, name: string, isPrivate: boolean }[]
authToken
Example
Response
Update wallets
Update wallets in a cluster that the authenticated wallet is in
wallets
{ address: string, name: string }[]
authToken
Example
Response
Remove wallets
Remove an array of addresses from the cluster of the authenticated wallet
wallets
string[]
authToken
Example
Response
Verify wallet
Verify the authenticated wallet in a specific cluster
clusterId
The cluster id you want to verify the wallet in
authToken
Example
Response
Last updated