Back to Home

BlockHash

Utility
0xf93278b87173...e40d55fc16fa
FrontierContract #627Exact Bytecode MatchEdit this contract

Bytecode verified via sibling

This contract shares identical runtime bytecode with BlockHash (0x7b0753f8...) which has been verified through compiler archaeology.

Deployed August 30, 2015 (11 years ago)Block 162,142

A 107-byte contract with one function, getBlockhash(uint), returning the hash of a given block number.

Frontier EraVerified Source

Historical Significance

BLOCKHASH is only defined for the previous 256 blocks and returns zero outside that window, a limit that is easy to state and easy to forget. A deployed one-line wrapper is how that boundary got checked from the outside in 2015, and the same opcode became the basis of most early on-chain randomness, including the coin-flip contracts of the same period.

Context

Deployed 2015-08-30 by 0xb735bf53abc79525a4f585a004a620d08cc66b27. Three byte-identical copies of this runtime exist. Source recovered by exact runtime bytecode match and verified on Etherscan.

Key Facts
Deployment Block
162,142
Deployment Date
Aug 30, 2015, 12:10 AM
Code Size
124.0 B
Gas at Deploy
48,707

Description

The whole contract is a single wrapper around the BLOCKHASH opcode. getBlockhash(uint n) at selector 0xe9413d38 returns block.blockhash(n) as a bytes32 and does nothing else. It holds no state, accepts no ether and has no fallback, so the only reachable behaviour is the one read.

Source Verified

SolidityExact bytecode match(124 bytes)
Compiler: v0.1.3+
Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Utility

Bytecode Overview

Opcodes124
Unique Opcodes34
Jump Instructions6
Storage Operations1

External Links

Related contracts