Back to Home

Purchase

Utility
0x5bf8e92a5727...cda7362bc166
FrontierContract #3,837Exact Bytecode MatchEdit this contract
Deployed November 13, 2015 (10 years ago)Block 534,352

Safe remote purchase escrow holding a double deposit from both sides

Frontier EraVerified Source

Context

Deployed in November 2015 during the Frontier period, when the Solidity documentation examples were the main source of contract code in circulation.

Key Facts
Deployment Block
534,352
Deployment Date
Nov 13, 2015, 01:48 PM
Code Size
1.8 KB
Gas at Deploy
537,072

Description

An escrow for a remote sale. The seller deploys the contract with twice the item price, which the constructor halves and records as the value. A buyer locks the sale by sending the same doubled amount through confirmPurchase. Calling confirmReceived returns the buyer's deposit and pays the seller the rest, and refund lets the seller unwind a locked sale instead. State transitions are guarded by a three-value enum and by modifiers that restrict each call to the buyer or the seller. It is an edited copy of the safe remote purchase example from the Solidity documentation, with a refund path and capitalised events added.

Source Verified

Exact bytecode match(1,871 bytes)
Compiler: v0.1.5+
Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes1,871
Unique Opcodes160
Jump Instructions61
Storage Operations37

External Links

Related contracts