dash-platform-sdk
    Preparing search index...

    Class NamesController

    Functions related to DPNS names (usernames)

    Index

    Methods

    • Performs a DPNS name registration sequence Contested names are include additional fee of 0.2 Dash Check your name is contested with .testNameContested(name) method to check if additional fee will be charged

      Parameters

      • name: string

        {string} username (ex. pshenmic.dash)

      • identityId: IdentifierLike

        {IdentifierLike} identity identifier

      • privateKey: PrivateKeyWASM

        {PrivateKeyWASM} Authentication / High private key from your identity

      Returns Promise<void>

    • Parameters

      • identifier: IdentifierLike

      Returns Promise<DocumentWASM[]>

    • Tests a given username against contested names rules. Contested names includes an additional fee of 0.2 Dash as a voting resolution fee

      This function return boolean whether given username (f.e pshenmic.dash) falls under contested names rules.

      Parameters

      • name: string

      Returns boolean

    • Validates a DPNS name that you would like to register

      Parameters

      • fullName: string

        {string} full DPNS name (ex. pshenmic.dash)

      Returns null | string

      null if valid or string with a reason