Back to Home

Purchase

Utility
0x522fa550e1a4...fe8f3b958b68
FrontierContract #3,256Exact Bytecode MatchEdit this contract
Deployed November 3, 2015 (10 years ago)Block 484,096

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
484,096
Deployment Date
Nov 3, 2015, 03:35 PM
Code Size
946.0 B
Gas at Deploy
286,218

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. This deployment was compiled with the optimiser enabled.

Source Verified

Exact bytecode match(946 bytes)
Compiler: v0.1.6+
Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes946
Unique Opcodes157
Jump Instructions42
Storage Operations34

External Links

Related contracts