pub fn load_instruction_at_checked(
    index: usize,
    instruction_sysvar_account_info: &AccountInfo<'_>
) -> Result<Instruction, ProgramError>
Expand description

Load an Instruction in the currently executing Transaction at the specified index.

§Errors

Returns ProgramError::UnsupportedSysvar if the given account’s ID is not equal to ID.