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

Loading Values

Opcodes for getting data onto the stack.

Some of these have immediate data in the byte or bytes after the opcode.

OPCODEDESCRIPTION
intcblock uint ...prepare block of uint64 constants for use by intc
intc iIth constant from intcblock
intc_0constant 0 from intcblock
intc_1constant 1 from intcblock
intc_2constant 2 from intcblock
intc_3constant 3 from intcblock
pushint uintimmediate UINT
pushints uint ...push sequence of immediate uints to stack in the order they appear (first uint being deepest)
bytecblock bytes ...prepare block of byte-array constants for use by bytec
bytec iIth constant from bytecblock
bytec_0constant 0 from bytecblock
bytec_1constant 1 from bytecblock
bytec_2constant 2 from bytecblock
bytec_3constant 3 from bytecblock
pushbytes bytesimmediate BYTES
pushbytess bytes ...push sequences of immediate byte arrays to stack (first byte array being deepest)
bzerozero filled byte-array of length A
arg nNth LogicSig argument
arg_0LogicSig argument 0
arg_1LogicSig argument 1
arg_2LogicSig argument 2
arg_3LogicSig argument 3
argsAth LogicSig argument
txn ffield F of current transaction
gtxn t ffield F of the Tth transaction in the current group
txna f iIth value of the array field F of the current transaction txna can be called using txn with 2 immediates.
txnas fAth value of the array field F of the current transaction
gtxna t f iIth value of the array field F from the Tth transaction in the current group gtxna can be called using gtxn with 3 immediates.
gtxnas t fAth value of the array field F from the Tth transaction in the current group
gtxns ffield F of the Ath transaction in the current group
gtxnsa f iIth value of the array field F from the Ath transaction in the current group gtxnsa can be called using gtxns with 2 immediates.
gtxnsas fBth value of the array field F from the Ath transaction in the current group
global fglobal field F
load iIth scratch space value. All scratch spaces are 0 at program start.
loadsAth scratch space value. All scratch spaces are 0 at program start.
store istore A to the Ith scratch space
storesstore B to the Ath scratch space
gload t iIth scratch space value of the Tth transaction in the current group
gloads iIth scratch space value of the Ath transaction in the current group
gloadssBth scratch space value of the Ath transaction in the current group
gaid tID of the asset or application created in the Tth transaction of the current group
gaidsID of the asset or application created in the Ath transaction of the current group