Back to Home

Invoice

Wallet
0xa76dda4021a4...d43ab97114df
FrontierContract #8,986Exact Bytecode MatchEdit this contract
Deployed February 16, 2016 (10 years ago)Block 1,013,122

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,122
Deployment Date
Feb 16, 2016, 02:08 PM
Code Size
1.2 KB
Gas at Deploy
352,070
Transactions by Year
20169

Description

Invoice is a small payment-receiving contract deployed on February 16, 2016, 28 minutes after the otherwise identical 0x068500c7 from the same deployer; the only change is that refund is declared last. The deployer becomes the owner. Every payment 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 it. 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 to the given address. A getFundManager(address) function, despite its name, has no owner check and overwrites the stored fund manager with its argument, which would let anyone redirect forwarded funds.

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 Opcodes123
Jump Instructions42
Storage Operations21

External Links

Related contracts