Execution Modes - Algorand Specifications
Keyboard shortcuts
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
- Auto
- Light
- Dark
Algorand Specifications
Starting from Version 2, the AVM can run programs in two modes:
Logic Signature (or stateless) mode, used to execute Logic Signatures;
Application (or stateful) mode, used to execute Smart Contracts.
Differences between modes include:
The maximum allowed program size, defined by the following Ledger parameters:
- LSigmaxLSigmax
- Appprog,t,maxAppprog,t,max
- Apppage,maxApppage,max
The maximum allowed program cost, defined by the following Ledger parameters:
- LSigc,maxLSigc,max
- Appc,maxAppc,max
Opcode availability (refer to the Opcodes Specifications for details).
Some Global Fields are only available in Application mode.
Only Applications can observe transaction effects, such as Logs or IDs allocated to ASAs or new Applications.