Back to Home

Greeter

Utility
0xff9bc7de36e2...bc38033ea8d5
FrontierContract #452Exact Bytecode MatchEdit this contract

Bytecode verified via sibling

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

Deployed August 24, 2015 (11 years ago)Block 135,577

The go-ethereum Contract Tutorial greeter, deployed with the greeting: Hello World!

Frontier EraVerified Source

Historical Significance

The Contract Tutorial was the introduction to Solidity that shipped with go-ethereum, and deploying the greeter was its final step. Each copy therefore preserves the sentence its author chose to write onto a public chain while learning the tools. The Solidity source here was recovered by compiling the tutorial text with period compilers until the output matched the deployed bytecode exactly.

Context

Ethereum's Frontier network went live on 30 July 2015. The Contract Tutorial on the go-ethereum wiki, which the Frontier Guide included by reference, was the standard introduction of that period, and it named its three contracts mortal, greeter and token. Solidity was a few months old, contracts were compiled and deployed from the geth console, and no block explorer of the time kept the source, so the greeters survive as bytecode alone.

Key Facts
Deployment Block
135,577
Deployment Date
Aug 24, 2015, 11:10 AM
Code Size
476.0 B
Gas at Deploy
221,184
Transactions by Year
20152

Description

The greeter is the worked example of the Contract Tutorial on the go-ethereum wiki. It inherits a base contract named mortal, which records the account that created it and exposes kill(), a function that self-destructs the contract and sends its balance to that account. Only the creator can call it.

The greeter itself adds one string. The constructor stores the greeting given at deployment and greet() returns it. There is no setter, so the greeting a copy is born with is the only greeting it ever has, and no account other than the creator can affect it.

This copy was deployed with the greeting: Hello World!

Source Verified

SolidityExact bytecode match(476 bytes)
Compiler: soljson

The official Ethereum Greeter tutorial contract (mortal + greeter). Compiled with soljson v0.1.1+commit.6ff4cd6, optimizer off. 692 bytes + 96 bytes constructor arg = 788 bytes. Self-destructed.

Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes476
Unique Opcodes58
Jump Instructions16
Storage Operations5

External Links

Related contracts