ConfidentialWithdrawInstructionArgs: {
    amount: number | bigint;
    decimals: number;
    equalityProofInstructionOffset: number;
    newDecryptableAvailableBalance: Uint8Array;
    rangeProofInstructionOffset: number;
}

Type declaration

  • amount: number | bigint

    The amount of tokens to withdraw.

  • decimals: number

    Expected number of base 10 digits to the right of the decimal place.

  • equalityProofInstructionOffset: number

    Relative location of the ProofInstruction::VerifyCiphertextCommitmentEquality instruction to the Withdraw instruction in the transaction. If the offset is 0, then use a context state account for the proof.

  • newDecryptableAvailableBalance: Uint8Array

    The new decryptable balance if the withdrawal succeeds.

  • rangeProofInstructionOffset: number

    Relative location of the ProofInstruction::BatchedRangeProofU64 instruction to the Withdraw instruction in the transaction. If the offset is 0, then use a context state account for the proof.

Generated using TypeDoc