Skip to main content

Module context

Module context 

Source
Expand description

Execution context for Hopper programs.

Context is the canonical execution object that Hopper handlers receive. It provides structured access to the program_id, accounts, and instruction data, with indexed access and validation helpers.

Keep it boring: Context is the container for accounts, instruction data, and the instruction-scoped segment borrow registry. AccountView owns the actual access operations.

Structsยง

Context
Execution context for a Hopper instruction handler.