Registration

getNameAvailability(names)

Check the availability of multiple cluster names

const names = ["foobar", "namethatdoesntexist"];
const cluster = await clusters.getNameAvailability(names);

Response

[
  {
    "name": "foobar",
    "isAvailable": false
  },
  {
    "name": "namethatdoesntexist",
    "isAvailable": true
  }
]

getRegistrationTransaction(names, sender, network)

Get the transaction data for registering a cluster so that a user can sign it

Name
Description

network

sender

The sender's address

names

{ name: string; amountWei?: string }[] bidAmountWei (optional) is always in ETH and defaults to 0.01 ETH

referralClusterId (optional)

The cluster id that is referring this registration

Example

Response


getTransactionStatus(tx)

Get the status of a specific transaction hash.

For now, if you registered more than one name in a transaction, it'll only give you the status of the first name.

Example

Response

Last updated