Skip to Content
Mastering Blockchain - Second Edition
book

Mastering Blockchain - Second Edition

by Ankur Daharwal, Imran Bashir, Pranav Burnwal
March 2018
Beginner to intermediate
656 pages
20h 9m
English
Packt Publishing
Content preview from Mastering Blockchain - Second Edition

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Blockchain - Third Edition

Mastering Blockchain - Third Edition

Imran Bashir
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey
Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood

Publisher Resources

ISBN: 9781788839044Supplemental Content