skr-js
    Preparing search index...

    Function getSetPrimarySkrDomainInstruction

    • Builds the TLD House instruction that makes name the primary .skr name of owner, the name getPrimarySkrDomain returns from then on.

      Offline: derives every account without an RPC. The program rejects the transaction unless owner owns the name, so check that with resolveSkrDomain first. The first call creates the wallet's MainDomain account, which costs about 0.0015 SOL of rent; later calls overwrite it. A wallet has one MainDomain account across every AllDomains TLD, so this replaces a primary name under another TLD too. Pass a TransactionSigner as owner to have kit's signTransactionMessageWithSigners pick it up.

      Type Parameters

      • TOwner extends string = string

      Parameters

      Returns Promise<
          Instruction<
              string,
              readonly (AccountMeta<string> | AccountLookupMeta<string, string>)[],
          >,
      >