Function solana_program::program::invoke_signed[][src]

pub fn invoke_signed(
    instruction: &Instruction,
    account_infos: &[AccountInfo<'_>],
    signers_seeds: &[&[&[u8]]]
) -> ProgramResult
Expand description

Invoke a cross-program instruction with program signatures

Notes:

  • RefCell checking can be compute unit expensive, to avoid that expense use invoke_signed_unchecked instead, but at your own risk.
  • The program id of the instruction being issued must also be included in account_infos.