pub async fn approve<S2: Signer>(
        &self,
        source: &Pubkey,
        delegate: &Pubkey,
        authority: &S2,
        amount: u64,
    ) -> TokenResult<T::Output> {
        self.process_ixs(
            &[instruction::approve(
                &self.program_id,
                source,
                delegate,
                &authority.pubkey(),
                &[],
                amount,
            )?],
            &[authority],
        )
        .await
    }
/// Approve a delegate to spend tokens
Approve a delegate to spend tokens
Approve a delegate to spend tokens
pub async fn approve<S2: Signer>(
        &self,
        source: &Pubkey,
        delegate: &Pubkey,
        authority: &S2,
        amount: u64,
    ) -> TokenResult<T::Output> {
        self.process_ixs(
            &[instruction::approve(
                &self.program_id,
                source,
                delegate,
                &authority.pubkey(),
                &[],
                amount,
            )?],
            &[authority],
        )
        .await
    }
pub async fn approve < S2 : Signer > ( & self , source : & Pubkey , delegate : & Pubkey , authority : & S2 , amount : u64 , ) -> TokenResult < T :: Output > { self . process_ixs ( & [ instruction :: approve ( & self . program_id , source , delegate , & authority . pubkey ( ) , & [ ] , amount , ) ? ] , & [ authority ] , ) . await }
Approve a delegate to spend tokens
Approve a delegate to spend tokens
&self
source
&Pubkey
delegate
&Pubkey
authority
&S2
amount
u64
&self
source
&Pubkey
delegate
&Pubkey
authority
&S2
amount
u64