Back to Home

ContractDetector

program
0xfa934f8cc9ee...395088115760
FrontierContract #1,120Exact Bytecode MatchEdit this contract
Deployed September 13, 2015 (10 years ago)Block 230,389

A tutorial contract that detects whether a caller is a contract or an externally owned account.

Frontier EraVerified Source

Historical Significance

An early mainnet demonstration of contract detection via EXTCODESIZE, a pattern that became fundamental to smart contract security.

Context

Deployed in September 2015 during the Frontier era. Distinguishing between contracts and EOAs was a new concept that would later become critical for security patterns like reentrancy guards.

Key Facts
Deployer
Cyrus Adkisson(0xcf684d...ad1bac)
Deployment Block
230,389
Deployment Date
Sep 13, 2015, 11:04 PM
Code Size
1.2 KB
Gas at Deploy
341,669
Transactions by Year
20152

Description

A tutorial contract from Cyrus Adkisson's solidity-baby-steps series (contract #70) that demonstrates how to detect whether the caller is a smart contract or an externally owned account (EOA). Uses EXTCODESIZE to check if an address has code deployed.

Deployed on September 13, 2015. This pattern later became important for security considerations, as contracts and EOAs behave differently in certain contexts.

Source Verified

SolidityExact bytecode match(1,185 bytes)
Compiler: soljson

Exact creation bytecode match. Author Cyrus Adkisson published source at https://github.com/cyrusadkisson/solidity-baby-steps/blob/master/contracts/70_contract_detector.sol. Batch-matched against 357 deploy TXs from deployer 0xcf684dfb8304729355b58315e8019b1aa2ad1bac.

Heuristic Analysis

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

Detected Type: program

Bytecode Overview

Opcodes1,185
Unique Opcodes96
Jump Instructions54
Storage Operations20

External Links