pub fn invoke<const ACCOUNTS: usize>(
instruction: &InstructionView<'_, '_, '_, '_>,
account_views: &[&AccountView<'_>; ACCOUNTS],
) -> ProgramResultExpand description
Invoke a CPI with full validation.
Validates account count, address identity, Signer<’, ’>/writable requirements, and borrow compatibility before calling the runtime.