spl_token_2022::extension::confidential_transfer::instruction

Function transfer_with_fee

Source
pub fn transfer_with_fee(
    token_program_id: &Pubkey,
    source_token_account: &Pubkey,
    mint: &Pubkey,
    destination_token_account: &Pubkey,
    new_source_decryptable_available_balance: DecryptableBalance,
    authority: &Pubkey,
    multisig_signers: &[&Pubkey],
    equality_proof_data_location: ProofLocation<'_, CiphertextCommitmentEqualityProofData>,
    transfer_amount_ciphertext_validity_proof_data_location: ProofLocation<'_, BatchedGroupedCiphertext3HandlesValidityProofData>,
    fee_sigma_proof_data_location: ProofLocation<'_, PercentageWithCapProofData>,
    fee_ciphertext_validity_proof_data_location: ProofLocation<'_, BatchedGroupedCiphertext2HandlesValidityProofData>,
    range_proof_data_location: ProofLocation<'_, BatchedRangeProofU256Data>,
) -> Result<Vec<Instruction>, ProgramError>
Expand description

Create a TransferWithFee instruction