@heliuslabs/spr - v0.9.0-alpha
    Preparing search index...

    Function buildKeyUpdateTransaction

    • Replaces the viewing key in owner's record with address's. Payments to owner then go to the new key, and notes the old key holds stay spendable only with the old keys. The nullifier key never rotates, so an address with another one rejects with WALLET_USER_RECORD_NULLIFIER_KEY_MISMATCH. Returns undefined when the record already holds address, and rejects with WALLET_USER_REGISTRY_RECORD_NOT_FOUND when there is no record. payer pays only the transaction fee, since the record already exists.

      Parameters

      Returns Promise<
          | Readonly<
              { messageBytes: TransactionMessageBytes; signatures: SignaturesMap },
          >
          | undefined,
      >