skr-js
    Preparing search index...

    Function getPrimarySkrDomain

    • Returns the primary .skr name of wallet as 'alice.skr', or null when the wallet has not picked one, picked a name under another TLD, or no longer owns the name it picked.

      The wallet's MainDomain account points at the name but is not updated when the name is transferred or expires, so the name is resolved forward and its current owner compared with wallet before it is returned. Two getAccountInfo requests at most.

      Parameters

      Returns Promise<string | null>