spl_transfer_hook_interface::onchain

Function invoke_execute

Source
pub fn invoke_execute<'a>(
    program_id: &Pubkey,
    source_info: AccountInfo<'a>,
    mint_info: AccountInfo<'a>,
    destination_info: AccountInfo<'a>,
    authority_info: AccountInfo<'a>,
    additional_accounts: &[AccountInfo<'a>],
    amount: u64,
) -> ProgramResult
Expand description

Helper to CPI into a transfer-hook program on-chain, looking through the additional account infos to create the proper instruction