Evaluation Context - 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

Algorand Specifications

An Evaluation Context ECEC is a core runtime structure used during AVM program execution. It maintains all the state and metadata required to evaluate a program within a transaction (group) scope.

Below is a simplified interface example for the Evaluation Context, inspired by the go-algorand reference implementation.

These ECEC methods expose context information that remains fixed throughout the execution of a specific transaction within the group:

Additional program-related accessors:

These ECEC reflect the evolving state of execution, may change as the transaction executes.

The opcode budget limits the AVM program execution.

These functions expose the current Ledger context to the AVM: