pub async fn transfer_checked_with_fee<S2: Signer>(
        &self,
        source: &Pubkey,
        destination: &Pubkey,
        authority: &S2,
        amount: u64,
        decimals: u8,
        fee: u64,
    ) -> TokenResult<T::Output> {
        self.process_ixs(
            &[transfer_fee::instruction::transfer_checked_with_fee(
                &self.program_id,
                source,
                &self.pubkey,
                destination,
                &authority.pubkey(),
                &[],
                amount,
                decimals,
                fee,
            )?],
            &[authority],
        )
        .await
    }
/// Transfer tokens to another account, given an expected fee
Transfer tokens to another account, given an expected fee
Transfer tokens to another account given an expected fee
pub async fn transfer_checked_with_fee<S2: Signer>(
        &self,
        source: &Pubkey,
        destination: &Pubkey,
        authority: &S2,
        amount: u64,
        decimals: u8,
        fee: u64,
    ) -> TokenResult<T::Output> {
        self.process_ixs(
            &[transfer_fee::instruction::transfer_checked_with_fee(
                &self.program_id,
                source,
                &self.pubkey,
                destination,
                &authority.pubkey(),
                &[],
                amount,
                decimals,
                fee,
            )?],
            &[authority],
        )
        .await
    }
pub async fn transfer_checked_with_fee < S2 : Signer > ( & self , source : & Pubkey , destination : & Pubkey , authority : & S2 , amount : u64 , decimals : u8 , fee : u64 , ) -> TokenResult < T :: Output > { self . process_ixs ( & [ transfer_fee :: instruction :: transfer_checked_with_fee ( & self . program_id , source , & self . pubkey , destination , & authority . pubkey ( ) , & [ ] , amount , decimals , fee , ) ? ] , & [ authority ] , ) . await }
Transfer tokens to another account, given an expected fee
Transfer tokens to another account given an expected fee
&self
source
&Pubkey
destination
&Pubkey
authority
&S2
amount
u64
decimals
u8
fee
u64
&self
source
&Pubkey
destination
&Pubkey
authority
&S2
amount
u64
decimals
u8
fee
u64