Function spl_token_2022::instruction::transfer
source · pub fn transfer(
token_program_id: &Pubkey,
source_pubkey: &Pubkey,
destination_pubkey: &Pubkey,
authority_pubkey: &Pubkey,
signer_pubkeys: &[&Pubkey],
amount: u64
) -> Result<Instruction, ProgramError>
👎Deprecated since 4.0.0: please use
transfer_checked
or transfer_checked_with_fee
insteadExpand description
Creates a Transfer
instruction.