Back to Home

greeter

Utility
0xfcb0818c0b79...d0b6c0243c55
DAO ForkSource VerifiedEdit this contract
Deployed September 7, 2016 (9 years ago)Block 2,217,797

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

DAO Fork 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

The Contract Tutorial on the go-ethereum wiki was written for Frontier in 2015 and stayed in use as an introduction to Solidity well past the Homestead fork of March 2016. Copies of its greeter went on being deployed to mainnet by people working through the tutorial, compiled with whichever Solidity release was current when they reached the last step.

Key Facts
Deployment Block
2,217,797
Deployment Date
Sep 7, 2016, 09:35 PM
Code Size
374.0 B

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 from Blokur!

Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes374
Unique Opcodes59
Jump Instructions14
Storage Operations6

External Links

Related contracts