@softseco/confidential-transfers - v3.3.0
    Preparing search index...

    Function transfer

    • Send a confidential amount from the owner's available balance to another account. Builds the three zero-knowledge proofs, verifies them into proof accounts, runs the transfer (with the mint's transfer-hook accounts, if it has a hook) and closes the proof accounts: five transactions, signed together (a wallet asks once) and sent in order. If a step fails before the transfer itself lands, the proof accounts are closed and a ConfidentialTransfersError says which step failed.

      Parameters

      Returns Promise<TransferResult>

      await transfer({ rpc, rpcSubscriptions, payer, owner: alice, mint, destinationOwner: bob.address, amount: 600n });