Skip to main content

invoke

Function invoke 

Source
pub fn invoke<const ACCOUNTS: usize>(
    instruction: &InstructionView<'_, '_, '_, '_>,
    account_views: &[&AccountView; ACCOUNTS],
) -> ProgramResult
Expand description

Invoke a CPI with full validation.

Validates account count, address identity, signer/writable requirements, and borrow compatibility before calling the runtime.