Back to Home

PriceTicker

Unclassified
0x29599b970211...4e818ee5660b
FrontierContract #2,505Exact Bytecode MatchEdit this contract
Deployed October 23, 2015 (11 years ago)Block 428,496

Oraclize's ETH/BTC price ticker from October 2015: keeps Kraken's ETH/XBT price in a public string, refreshed by the oracle every 60 seconds.

Frontier EraVerified Source

Historical Significance

One of the earliest mainnet contracts to read external data through an oracle, and the earliest form of the KrakenPriceTicker example Oraclize later published. Source reconstructed from bytecode; exact runtime and creation match.

Context

Deployed on 23 October 2015 by the Oraclize operator account, before Oraclize published its API and examples on GitHub in December 2015. It uses the interface as it was before that rewrite: a connector address written directly into the contract, a query(uint256,string,string) call and a cb_address() check.

Key Facts
Deployment Block
428,496
Deployment Date
Oct 23, 2015, 06:11 PM
Code Size
1.9 KB
Gas at Deploy
442,684
Transactions by Year
20151

Description

PriceTicker stores the latest Kraken ETH/XBT price in the public string ETHXBT (initialised to "?????"). update() asks Oraclize to fetch json(https://api.kraken.com/0/public/Ticker?pair=ETHXBT).result.XETHXXBT.c.0 with a 60 second delay; __callback() accepts the answer only from the address returned by the connector's cb_address(), stores it and queues the next query. The constructor sends the first query, and kill() self-destructs the contract to the Oraclize operator account. The Oraclize connector address is hardcoded in storage.

Source Verified

SolidityExact bytecode match(1,936 bytes)
Compiler: v0.1.6+
Heuristic Analysis

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

Detected Type: Unclassified
Contains SELFDESTRUCT opcode

Bytecode Overview

Opcodes1,936
Unique Opcodes138
Jump Instructions73
Storage Operations33

External Links

Related contracts