Back to Home

Greeter

Utility
0x1b2ea425b748...7fc9824bafcb
FrontierContract #4,380Exact Bytecode MatchEdit this contract
Deployed December 1, 2015 (10 years ago)Block 625,356

The greeter with a changeable greeting and a block number reader

Frontier EraVerified Source

Historical Significance

The greeter with a setter is a small but real departure from the tutorial: once the greeting can be changed after deployment, the contract has mutable state that somebody has to be allowed to change, and the question of who becomes unavoidable. Walkthroughs of the period added exactly this step to introduce access control.

Context

Deployed in December 2015 on the Frontier chain.

Key Facts
Deployment Block
625,356
Deployment Date
Dec 1, 2015, 02:57 PM
Code Size
964.0 B
Gas at Deploy
238,542
Transactions by Year
20151

Description

The greeter that repeats a string given at construction, extended past the tutorial version: setGreeting lets the creator replace the greeting after deployment, and getBlockNumber returns the current block, included by its author as a demonstration of reading a global rather than for any purpose of its own. kill returns the balance to the creator. The declaration order matters to the compiled result: kill is written above setGreeting, and putting them the other way round moves a jump and changes the bytecode.

Source Verified

Exact bytecode match(964 bytes)
Compiler: v0.1.6+
Heuristic Analysis

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

Detected Type: Utility
Contains SELFDESTRUCT opcode

Bytecode Overview

Opcodes964
Unique Opcodes111
Jump Instructions39
Storage Operations19

External Links

Related contracts