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

    Function decryptTransferAmountAsAuditor

    • Recover the amount of a confidential transfer as the mint's auditor: decode the confidential-transfer instruction from the confirmed transaction (made directly, or by a program through a cross-program call) and decrypt the auditor ciphertext (lo/hi halves) with the auditor's ElGamal secret key. A transaction that failed transferred nothing, so it is refused with TRANSACTION_FAILED rather than read.

      A transaction can hold more than one confidential transfer. With mint, the first one of that mint is read; without it, the first one of any mint, in instruction order (each instruction followed by the calls it made). An amount the key cannot decrypt (it was encrypted to another auditor key) is DECRYPTION_FAILED. For every transfer of a mint, see listConfidentialActivity.

      Returns Promise<bigint>