Documentation

    Class SuinsClient

    Index

    Constructors

    Properties

    client: SuiClient
    config: PackageInfo
    network: Network

    Methods

    • Calculates the registration or renewal price for an SLD (Second Level Domain). It expects a domain name, the number of years and a SuinsPriceList object, as returned from suinsClient.getPriceList() function, or suins.getRenewalPriceList() function.

      It throws an error:

      1. if the name is a subdomain
      2. if the name is not a valid SuiNS name
      3. if the years are not between 1 and 5

      Parameters

      • __namedParameters: { isRegistration?: boolean; name: string; years: number }

      Returns Promise<number>

    • Returns the coin discount list for SuiNS names.

      Returns Promise<CoinTypeDiscount>

    • Parameters

      • name: string

      Returns Promise<null | NameRecord>

    • Parameters

      • objectId: string

      Returns Promise<string>

    • Parameters

      Returns Promise<string[]>

    • Returns the price list for SuiNS names in the base asset.

      Returns Promise<SuinsPriceList>

    • Returns the renewal price list for SuiNS names in the base asset.

      Returns Promise<SuinsPriceList>

    MMNEPVFCICPMFPCPTTAAATR