Environmental information

There is a total of 13 instructions in this category. These opcodes are used to provide information related to addresses, runtime environments, and data copy operations.

Mnemonic

Value

POP

PUSH

Gas

Description

ADDRESS

0x30

0

1

2

Used to get the address of the currently executing account

BALANCE

0x31

1

1

20

Used to get the balance of the given account

ORIGIN

0x32

0

1

2

Used to get the address of the sender of the original transaction

CALLER

0x33

0

1

2

Used to get the address of the account that initiated the execution

CALLVALUE

0x34

0

1

2

Retrieves the value deposited by the instruction or transaction

CALLDATALOAD

0x35

1

Get Mastering Blockchain - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.