Clusters

Create a Cluster

Create a cluster

Name
Description

Example

const data = await clusters.createCluster(authToken);

Response

{
    "id": "0x000049d953f88ab10f1b2778275028894602c41bbe6ea42bf46695d4edc5b6d6",
}

Cluster by ID

Get the cluster from an id

Name
Description

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
Description

name

Cluster name

Example

Response


Cluster ID by address

Get the cluster from an id

Name
Description

address

Verified address of a cluster

Example

Response


Add wallets

Add wallets to the cluster the authenticated wallet is in

Name
Description

wallets

{ address: string, name: string, isPrivate: boolean }[]

Example

Response


Generate wallet

Generate a wallet in a cluster that the authenticated wallet is in

Name
Description

wallets

{ address: string, name: string, isPrivate: boolean }[]

Example

Response


Update wallets

Update wallets in a cluster that the authenticated wallet is in

Name
Description

wallets

{ address: string, name: string }[]

Example

Response


Remove wallets

Remove an array of addresses from the cluster of the authenticated wallet

Name
Description

wallets

string[]

Example

Response


Verify wallet

Verify the authenticated wallet in a specific cluster

Name
Description

clusterId

The cluster id you want to verify the wallet in

Example

Response

Last updated