Back to Home

token

Token
0xf175bac26974...34f78dc88977
FrontierContract #7,422Source VerifiedEdit this contract
Deployed January 29, 2016 (10 years ago)Block 924,414

The go-ethereum wiki tutorial token: ten thousand units to its creator, a sendCoin transfer and a getBalance query.

Frontier EraVerified Source

Historical Significance

The token half of the tutorial that taught the first wave of Ethereum users to write Solidity. It is a token in the barest sense: a mapping from address to number with a function that moves the numbers, which is what the standards of the following year were written to make interoperable.

Context

Ethereum's Frontier network went live on 30 July 2015 and the Contract Tutorial on the go-ethereum wiki, included by reference from the Frontier Guide, was the standard introduction to Solidity. Its three contracts are named mortal, greeter and token.

Key Facts
Deployment Block
924,414
Deployment Date
Jan 29, 2016, 10:21 PM
Code Size
204.0 B
Gas at Deploy
86,396

Description

The token from the Contract Tutorial on the go-ethereum wiki, the third contract of that tutorial after mortal and greeter. Its constructor writes ten thousand units to whoever deploys it, sendCoin(receiver, amount) moves units and returns false rather than reverting if the sender is short, and getBalance(account) reads any balance back.

The balances mapping is not public, so that getter is how a balance gets read. There is no event, no approval mechanism, no metadata and no way to create more units after deployment. The wiki renamed this function between revisions, and the deployed code uses sendCoin.

Heuristic Analysis

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

Detected Type: Token

Bytecode Overview

Opcodes204
Unique Opcodes50
Jump Instructions10
Storage Operations7

External Links

Related contracts