@softseco/arcantis - v1.0.0-rc.3
    Preparing search index...

    Function transfer

    • Send a confidential amount from the owner's available balance to another account. Builds the three zero-knowledge proofs and sends them inside one transaction with the transfer (with the mint's transfer-hook accounts, if it has a hook). With singleTransaction: false, or when that transaction would be too large, it verifies them into proof accounts, runs the transfer 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 });