Back to Home

Invoice

Wallet
0x068500c7d15f...103b92d07d41
FrontierContract #8,981Exact Bytecode MatchEdit this contract
Deployed February 16, 2016 (10 years ago)Block 1,013,013

Frontier-era invoice contract from February 2016 that logs incoming payments and forwards them to a fund manager.

Frontier EraVerified Source

Historical Significance

It is a small, complete record of how an individual developer built payment-handling contracts on Frontier: a working invoice pattern (log, forward, refund via self-destruct) and the rapid version-by-version iteration visible on chain. Its source was reconstructed and reproduced byte for byte.

Context

February 2016 was the final month of the Frontier era, shortly before the Homestead hard fork in March 2016. Solidity was at v0.2.x, there was no payable modifier, and contract wallets and payment forwarders were written by hand by individual developers experimenting on mainnet.

Key Facts
Deployment Block
1,013,013
Deployment Date
Feb 16, 2016, 01:40 PM
Code Size
1.2 KB
Gas at Deploy
352,070

Description

Invoice is a small payment-receiving contract deployed on February 16, 2016. The deployer becomes the owner. Every payment to the contract triggers the fallback function, which logs an IncomingTx event (block number, sender, value, timestamp) and, once the owner has set a fund manager, forwards the whole balance to that address. If no fund manager is set the payment is rejected.

The owner can set the fund manager, transfer ownership, and call refund(investor), which logs a RefundInvoice event and self-destructs the contract, sending any balance to the given address. A getFundManager(address) function, despite its name, has no owner check and overwrites the stored fund manager with its argument before returning it, which would let anyone redirect forwarded funds. The contract was never called after deployment.

The deployer, 0x39afc3556daa4d11a0a8f16ec1a490cd84aa6945, created 107 contracts between January 28 and March 18, 2016. About 40 of them emit the same IncomingTx event, which shows an invoice and payment-forwarding system being rewritten many times over roughly five weeks, sometimes several versions per hour.

Source Verified

SolidityExact bytecode match(1,226 bytes)
Compiler: soljson
Heuristic Analysis

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

Detected Type: Wallet
Contains SELFDESTRUCT opcode

Bytecode Overview

Opcodes1,226
Unique Opcodes122
Jump Instructions42
Storage Operations21

External Links

Related contracts