Back to Home

greeter

Utility
0xbdcd9dc51778...8bbdf32f5ff7
DAO ForkSource VerifiedEdit this contract
Deployed September 14, 2016 (9 years ago)Block 2,256,775

The go-ethereum Contract Tutorial greeter, deployed with the greeting: test

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,256,775
Deployment Date
Sep 14, 2016, 08:13 AM
Code Size
389.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: test

Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes389
Unique Opcodes58
Jump Instructions17
Storage Operations6

External Links

Related contracts