This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.
Overview
Opcode:0x43Introduced: Frontier (EVM genesis)NUMBER retrieves the current block number - the sequential index of the block in the blockchain. Block numbers start at 0 (genesis) and increment by 1 for each new block.
Specification
Stack Input:
(none)
Stack Output:
block_number (u256)
Gas Cost: 2 (GasQuickStep)Operation:
stack.push(block.number)
Behavior
NUMBER pushes the current block number onto the stack as a 256-bit unsigned integer: