Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.4 KB

Block Information.md

File metadata and controls

21 lines (18 loc) · 1.4 KB

Information about the Transaction's Block

OP Code (Hexidecimal) Operation1 Description Gas
0x40 BLOCKHASH 1 1 Get the hash of one of the 256 most recent complete blocks2 20
0x41 COINBASE 0 1 Get the block’s beneficiary address 2
0x42 TIMESTAMP 0 1 Get the block’s timestamp 2
0x43 NUMBER 0 1 Get the block’s number 2
0x44 DIFFICULTY 0 1 Get the block’s difficulty 2
0x45 GASLIMIT 0 1 Get the block’s gas limit 2

References


Tags

Instruction Set

Footnotes

  1. (Mnemonic, Stack items placed, Stack items removed)

  2. Can have security implications if the block requested is not in the most recent 256 blocks because it can return 0.