Back to Home

CoinFlipper

Unknown
0xb87824547db8...1a602f8642ad
FrontierContract #84Exact Bytecode MatchEdit this contract
Deployed August 8, 2015 (10 years ago)Block 55,627

Timestamp-parity coinflip with balance guard and donate().

Key Facts

Deployment Block
55,627
Deployment Date
Aug 8, 2015, 10:46 PM
Code Size
186.0 B
Gas at Deploy
66,999
Transactions by Year
20157
20261

Description

Timestamp-parity coinflip with balance guard and donate(). Functions include flip() (auto-getter), donate(), fallback. Verified with soljson-v0.1.1+commit.6ff4cd6 and optimizer ON.

Source Verified

SolidityExact bytecode match(186 bytes)
Compiler: soljson

Backfilled from awesome-ethereum-proofs PR #35.

Heuristic Analysis

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

Detected Type: Unknown

Frontier Era

The initial release of Ethereum. A bare-bones implementation for technical users.

Block span: 01,149,999
July 30, 2015March 14, 2016

Bytecode Overview

Opcodes186
Unique Opcodes55
Jump Instructions13
Storage Operations2

Verified Source Available

Source verified through compiler archaeology and exact bytecode matching.

View Verification Proof
Show source code (Solidity)
// Compiler: solc 0.1.0 --optimize (exact match with solc 0.0.9.27 through 0.1.1, optimized)
// Contract: 0xb87824547db80f1fb37d0225b99f1a602f8642ad
// Deployed: 2015-08-08 (block 55627)
// Match: 100% exact bytecode match (186/186 bytes)
contract CoinFlipper {
    uint256 public flip;
    function donate() {
    }
    function() {
        var v = msg.value;
        var b = address(this).balance;
        if (v > 2 * b) {
            return;
        }
        flip = block.timestamp;
        if (flip % 2 == 0) {
        } else {
            msg.sender.send(2 * v);
        }
    }
}

External Links