Lectura rápida
Empieza por la explicación más corta y útil antes de profundizar.
The function that the Solana runtime calls when a program is invoked. Native programs use the `entrypoint!()` macro which exposes a function with signature `fn(program_id, accounts, instruction_data) -> ProgramResult`. Anchor generates the entrypoint automatically and routes to the correct handler based on the instruction discriminator.