ETH Price: $3,540.64 (-1.16%)
Gas: 20 Gwei

Contract

0x00bE721BE5E52DA3A7e3E3e1dd871bbC5E1c17fB
 

Overview

ETH Balance

0.00473249 ETH

Eth Value

$16.76 (@ $3,540.64/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Spin49631122018-01-24 8:39:222256 days ago1516783162IN
0x00bE721B...C5E1c17fB
0 ETH0.0006324612
Spin49631062018-01-24 8:37:432256 days ago1516783063IN
0x00bE721B...C5E1c17fB
0 ETH0.0007378714
Spin49630872018-01-24 8:32:202256 days ago1516782740IN
0x00bE721B...C5E1c17fB
0 ETH0.00048019
Spin49630742018-01-24 8:29:012256 days ago1516782541IN
0x00bE721B...C5E1c17fB
0 ETH0.0005379310
Spin49630662018-01-24 8:27:332256 days ago1516782453IN
0x00bE721B...C5E1c17fB
0 ETH0.0009567518
Spin49630532018-01-24 8:25:262256 days ago1516782326IN
0x00bE721B...C5E1c17fB
0 ETH0.0009521418
Spin49630432018-01-24 8:23:442256 days ago1516782224IN
0x00bE721B...C5E1c17fB
0 ETH0.0009025117
Spin49630372018-01-24 8:22:312256 days ago1516782151IN
0x00bE721B...C5E1c17fB
0 ETH0.0008453216
Spin49630282018-01-24 8:20:512256 days ago1516782051IN
0x00bE721B...C5E1c17fB
0 ETH0.0005361910.1
Transfer47824632017-12-23 12:13:242287 days ago1514031204IN
0x00bE721B...C5E1c17fB
0.000001 ETH0.000051751
Transfer47418822017-12-16 9:22:142294 days ago1513416134IN
0x00bE721B...C5E1c17fB
0.00000001 ETH0.0051757100
Transfer47418752017-12-16 9:20:442294 days ago1513416044IN
0x00bE721B...C5E1c17fB
0.00000001 ETH0.0051757100
Transfer47418722017-12-16 9:19:592294 days ago1513415999IN
0x00bE721B...C5E1c17fB
0.00000001 ETH0.0051757100
Transfer47418702017-12-16 9:19:152294 days ago1513415955IN
0x00bE721B...C5E1c17fB
0.00000001 ETH0.0051757100
Transfer47418682017-12-16 9:18:452294 days ago1513415925IN
0x00bE721B...C5E1c17fB
0.00000001 ETH0.0051757100
Transfer47418632017-12-16 9:17:112294 days ago1513415831IN
0x00bE721B...C5E1c17fB
0.00000001 ETH0.0048392793.5
Transfer47418602017-12-16 9:16:292294 days ago1513415789IN
0x00bE721B...C5E1c17fB
0.0000001 ETH0.0050980698.5
Transfer47418542017-12-16 9:15:262294 days ago1513415726IN
0x00bE721B...C5E1c17fB
0.0000001 ETH0.0050980698.5
Transfer47418412017-12-16 9:13:142294 days ago1513415594IN
0x00bE721B...C5E1c17fB
0.000001 ETH0.0025878550
Transfer47333182017-12-14 21:39:492296 days ago1513287589IN
0x00bE721B...C5E1c17fB
0.0001 ETH0.0031054260
Transfer47240472017-12-13 6:22:112298 days ago1513146131IN
0x00bE721B...C5E1c17fB
0 ETH0.0010868921
Transfer47230972017-12-13 2:24:542298 days ago1513131894IN
0x00bE721B...C5E1c17fB
0.00001 ETH0.0005175710
Transfer47223412017-12-12 23:14:172298 days ago1513120457IN
0x00bE721B...C5E1c17fB
0.00001 ETH0.0005175710
Transfer47220832017-12-12 22:09:002298 days ago1513116540IN
0x00bE721B...C5E1c17fB
0.00001 ETH0.0025878550
Transfer47217242017-12-12 20:42:262298 days ago1513111346IN
0x00bE721B...C5E1c17fB
0.00001 ETH0.0010868921
View all transactions

Advanced mode:
Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
REALotteryWheel

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-12-06
*/

pragma solidity ^0.4.17;
/*
	REA Lottery Wheel Contract

	The constructor sets last_hash to some initial value.
	Every call to spin() will increase the round_count by one and
	a put a new "random" hash into the storage map "hashes".
	spin() accepts an argument which can be used to introdue more "randomness".

	The community can participate by sending small amounts of Eth (no matter the value)
	to the smart contract. The value sent together with timestamp and blocknumber increase
	the "randomness".

	The outcome of round <n> can be retrived via call to get_hash(<n>).  

	WARNING and DISCLAIMER: 
	We fully understand the fact that Ethereum Smart Contracts
	by design of Ethereum Blockchain and Solidity language work
	in a determenistic and predictable way. 

	The block number and the timestamp are not random variables in
	a mathematical sense. Even worse, the interested miners can 
	affect the outcome by not including the contract transaction
	in a current block if they are not happy about the outcome 
	(since miners in theory know the outcome of every contract transaction
	before the transaction is included in a block). 

	2017 Pavel Metelitsyn

*/

contract REALotteryWheel{
    
    uint16 public round_count = 0;
    bytes32 public last_hash;
    address public controller;
    
    mapping (uint16 => bytes32) public hashes;
    
    function REALotteryWheel() public {
        controller = msg.sender;
        last_hash = keccak256(block.number, now);    
    }
    
    function do_spin(bytes32 s) internal {
        round_count = round_count + 1;
        last_hash = keccak256(block.number,now,s);
        hashes[round_count] = last_hash;
    }

    function spin(bytes32 s) public { 
    	if(controller != msg.sender) revert();
    	do_spin(s);
    }

    function get_hash (uint16 i) constant returns (bytes32){
        return hashes[i];
    }
    
    function () payable {
        do_spin(bytes32(msg.value));
    }
    
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"","type":"uint16"}],"name":"hashes","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"s","type":"bytes32"}],"name":"spin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"last_hash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"i","type":"uint16"}],"name":"get_hash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"round_count","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

60606040526000805461ffff19169055341561001a57600080fd5b60028054600160a060020a03191633600160a060020a03161790554342604051918252602082015260409081019051908190039020600155610266806100616000396000f3006060604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634dcee2e0811461008257806377f48f94146100ae578063a202e476146100c4578063a783a4f1146100d7578063cc7949ae146100f1578063f77c47911461011b575b61008034610157565b005b341561008d57600080fd5b61009c61ffff600435166101b2565b60405190815260200160405180910390f35b34156100b957600080fd5b6100806004356101c4565b34156100cf57600080fd5b61009c6101f8565b34156100e257600080fd5b61009c61ffff600435166101fe565b34156100fc57600080fd5b610104610214565b60405161ffff909116815260200160405180910390f35b341561012657600080fd5b61012e61021e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000805461ffff8082166001011661ffff1990911617905543428260405192835260208301919091526040808301919091526060909101905190819003902060018190556000805461ffff1681526003602052604090205550565b60036020526000908152604090205481565b6002543373ffffffffffffffffffffffffffffffffffffffff9081169116146101ec57600080fd5b6101f581610157565b50565b60015481565b61ffff1660009081526003602052604090205490565b60005461ffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a723058209f0a2f78f1119d642a8221541f3a5282ead771b0aed7638d7b5f352d7e8678090029

Deployed Bytecode

0x6060604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634dcee2e0811461008257806377f48f94146100ae578063a202e476146100c4578063a783a4f1146100d7578063cc7949ae146100f1578063f77c47911461011b575b61008034610157565b005b341561008d57600080fd5b61009c61ffff600435166101b2565b60405190815260200160405180910390f35b34156100b957600080fd5b6100806004356101c4565b34156100cf57600080fd5b61009c6101f8565b34156100e257600080fd5b61009c61ffff600435166101fe565b34156100fc57600080fd5b610104610214565b60405161ffff909116815260200160405180910390f35b341561012657600080fd5b61012e61021e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000805461ffff8082166001011661ffff1990911617905543428260405192835260208301919091526040808301919091526060909101905190819003902060018190556000805461ffff1681526003602052604090205550565b60036020526000908152604090205481565b6002543373ffffffffffffffffffffffffffffffffffffffff9081169116146101ec57600080fd5b6101f581610157565b50565b60015481565b61ffff1660009081526003602052604090205490565b60005461ffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a723058209f0a2f78f1119d642a8221541f3a5282ead771b0aed7638d7b5f352d7e8678090029

Swarm Source

bzzr://9f0a2f78f1119d642a8221541f3a5282ead771b0aed7638d7b5f352d7e867809

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.