Back to Home

CoinLock

Utility
0x6e6329ec7994...c8af251ff750
FrontierContract #1,043Source VerifiedEdit this contract
Deployed September 11, 2015 (10 years ago)Block 220,304

A time lock: its owner sets one future expiry, and after that moment passes redeem() destroys the contract and returns its balance.

Frontier EraVerified Source

Historical Significance

Deferred spending with nobody to ask, an idea people reached for as soon as a contract could hold money: the promise is enforced by a contract that cannot be talked out of it rather than by a custodian. Making the deadline settable once and only into the future is the detail that turns a convenience into a commitment.

Context

Ethereum's Frontier network went live on 30 July 2015. Almost nothing was deployed in its first months except tutorial code and small experiments, written in a Solidity only a few months old and with no test network in common use, so the experiments happened on mainnet.

Key Facts
Deployment Block
220,304
Deployment Date
Sep 11, 2015, 10:47 PM
Code Size
546.0 B
Gas at Deploy
170,731

Description

A contract that holds ether until a date its owner chooses. lock(expiration) takes a timestamp and accepts it only if it lies in the future and no expiry has been set yet, so the deadline can be set exactly once and never moved or removed afterwards. Only the owner can call it.

After the timestamp has passed, redeem() self-destructs the contract and sends everything it holds to that owner. Before then redeem() does nothing, and there is no other way out: no partial withdrawal, no cancel, and no recipient other than the owner.

If the owner never calls lock, the expiry stays zero, which is in the past, and the balance can be redeemed at any time.

Heuristic Analysis

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

Detected Type: Utility
Contains SELFDESTRUCT opcode

Bytecode Overview

Opcodes546
Unique Opcodes63
Jump Instructions23
Storage Operations9

External Links

Related contracts