Overview
ETH Balance
0.00473249 ETH
Eth Value
$16.76 (@ $3,540.64/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 32 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Spin | 4963112 | 2256 days ago | IN | 0 ETH | 0.00063246 | ||||
Spin | 4963106 | 2256 days ago | IN | 0 ETH | 0.00073787 | ||||
Spin | 4963087 | 2256 days ago | IN | 0 ETH | 0.0004801 | ||||
Spin | 4963074 | 2256 days ago | IN | 0 ETH | 0.00053793 | ||||
Spin | 4963066 | 2256 days ago | IN | 0 ETH | 0.00095675 | ||||
Spin | 4963053 | 2256 days ago | IN | 0 ETH | 0.00095214 | ||||
Spin | 4963043 | 2256 days ago | IN | 0 ETH | 0.00090251 | ||||
Spin | 4963037 | 2256 days ago | IN | 0 ETH | 0.00084532 | ||||
Spin | 4963028 | 2256 days ago | IN | 0 ETH | 0.00053619 | ||||
Transfer | 4782463 | 2287 days ago | IN | 0.000001 ETH | 0.00005175 | ||||
Transfer | 4741882 | 2294 days ago | IN | 0.00000001 ETH | 0.0051757 | ||||
Transfer | 4741875 | 2294 days ago | IN | 0.00000001 ETH | 0.0051757 | ||||
Transfer | 4741872 | 2294 days ago | IN | 0.00000001 ETH | 0.0051757 | ||||
Transfer | 4741870 | 2294 days ago | IN | 0.00000001 ETH | 0.0051757 | ||||
Transfer | 4741868 | 2294 days ago | IN | 0.00000001 ETH | 0.0051757 | ||||
Transfer | 4741863 | 2294 days ago | IN | 0.00000001 ETH | 0.00483927 | ||||
Transfer | 4741860 | 2294 days ago | IN | 0.0000001 ETH | 0.00509806 | ||||
Transfer | 4741854 | 2294 days ago | IN | 0.0000001 ETH | 0.00509806 | ||||
Transfer | 4741841 | 2294 days ago | IN | 0.000001 ETH | 0.00258785 | ||||
Transfer | 4733318 | 2296 days ago | IN | 0.0001 ETH | 0.00310542 | ||||
Transfer | 4724047 | 2298 days ago | IN | 0 ETH | 0.00108689 | ||||
Transfer | 4723097 | 2298 days ago | IN | 0.00001 ETH | 0.00051757 | ||||
Transfer | 4722341 | 2298 days ago | IN | 0.00001 ETH | 0.00051757 | ||||
Transfer | 4722083 | 2298 days ago | IN | 0.00001 ETH | 0.00258785 | ||||
Transfer | 4721724 | 2298 days ago | IN | 0.00001 ETH | 0.00108689 |
Loading...
Loading
Contract Name:
REALotteryWheel
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
60606040526000805461ffff19169055341561001a57600080fd5b60028054600160a060020a03191633600160a060020a03161790554342604051918252602082015260409081019051908190039020600155610266806100616000396000f3006060604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634dcee2e0811461008257806377f48f94146100ae578063a202e476146100c4578063a783a4f1146100d7578063cc7949ae146100f1578063f77c47911461011b575b61008034610157565b005b341561008d57600080fd5b61009c61ffff600435166101b2565b60405190815260200160405180910390f35b34156100b957600080fd5b6100806004356101c4565b34156100cf57600080fd5b61009c6101f8565b34156100e257600080fd5b61009c61ffff600435166101fe565b34156100fc57600080fd5b610104610214565b60405161ffff909116815260200160405180910390f35b341561012657600080fd5b61012e61021e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000805461ffff8082166001011661ffff1990911617905543428260405192835260208301919091526040808301919091526060909101905190819003902060018190556000805461ffff1681526003602052604090205550565b60036020526000908152604090205481565b6002543373ffffffffffffffffffffffffffffffffffffffff9081169116146101ec57600080fd5b6101f581610157565b50565b60015481565b61ffff1660009081526003602052604090205490565b60005461ffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a723058209f0a2f78f1119d642a8221541f3a5282ead771b0aed7638d7b5f352d7e8678090029
Deployed Bytecode
0x6060604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634dcee2e0811461008257806377f48f94146100ae578063a202e476146100c4578063a783a4f1146100d7578063cc7949ae146100f1578063f77c47911461011b575b61008034610157565b005b341561008d57600080fd5b61009c61ffff600435166101b2565b60405190815260200160405180910390f35b34156100b957600080fd5b6100806004356101c4565b34156100cf57600080fd5b61009c6101f8565b34156100e257600080fd5b61009c61ffff600435166101fe565b34156100fc57600080fd5b610104610214565b60405161ffff909116815260200160405180910390f35b341561012657600080fd5b61012e61021e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000805461ffff8082166001011661ffff1990911617905543428260405192835260208301919091526040808301919091526060909101905190819003902060018190556000805461ffff1681526003602052604090205550565b60036020526000908152604090205481565b6002543373ffffffffffffffffffffffffffffffffffffffff9081169116146101ec57600080fd5b6101f581610157565b50565b60015481565b61ffff1660009081526003602052604090205490565b60005461ffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a723058209f0a2f78f1119d642a8221541f3a5282ead771b0aed7638d7b5f352d7e8678090029
Swarm Source
bzzr://9f0a2f78f1119d642a8221541f3a5282ead771b0aed7638d7b5f352d7e867809
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 24 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,540.64 | 0.00473249 | $16.76 |
[ 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.