ETH Price: $3,579.27 (-0.16%)
Gas: 34 Gwei

Contract

0x9828F591b21eE4aD4FD803FC7339588CB83a6b84
 

Overview

ETH Balance

1 ETH

Eth Value

$3,579.27 (@ $3,579.27/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Birthday Gift63886902018-09-24 4:18:532012 days ago1537762733IN
0x9828F591...CB83a6b84
0 ETH0.00046720
0x7de70ab760682872018-08-01 9:41:502066 days ago1533116510IN
0x9828F591...CB83a6b84
0 ETH0.001173950
Birthday Gift43868952017-10-19 2:43:182352 days ago1508380998IN
0x9828F591...CB83a6b84
0 ETH0.000185778
0x0241621d43868912017-10-19 2:42:112352 days ago1508380931IN
0x9828F591...CB83a6b84
0 ETH0.0002347810
0xffd8ffe120488892016-08-10 23:00:042786 days ago1470870004IN
0x9828F591...CB83a6b84
1 ETH0.0872876422
0x6060604020485582016-08-10 21:43:472786 days ago1470865427IN
 Create: BirthdayGift
0 ETH0.0047238726.62

Advanced mode:
Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BirthdayGift

Compiler Version
v0.3.0-2016-03-30-c2cf806

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2016-08-11
*/

/// Simple contract that collects money, keeps them till the certain birthday
/// time and then allows certain recipient to take the collected money.
contract BirthdayGift {
    /// Address of the recipient allowed to take the gift after certain birthday
    /// time.
    address public recipient;

    /// Birthday time, the gift could be taken after.
    uint public birthday;

    /// Congratulate recipient and give the gift.
    ///
    /// @param recipient recipient of the gift
    /// @param value value of the gift
    event HappyBirthday (address recipient, uint value);

    /// Instantiate the contract with given recipient and birthday time.
    ///
    /// @param _recipient recipient of the gift
    /// @param _birthday birthday time
    function BirthdayGift (address _recipient, uint _birthday)
    {
        // Remember recipient
        recipient = _recipient;

        // Remember birthday time
        birthday = _birthday;
    }

    /// Collect money if birthday time didn't come yet.
    function ()
    {
        // Do not collect after birthday time
        if (block.timestamp >= birthday) throw;
    }

    /// Take a gift.
    function Take ()
    {
        // Only proper recipient is allowed to take the gift
        if (msg.sender != recipient) throw;

        // Gift couldn't be taken before birthday time
        if (block.timestamp < birthday) throw;

        // Let's congratulate our recipient
        HappyBirthday (recipient, this.balance);

        // And finally give the gift!
        if (!recipient.send (this.balance)) throw;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"birthday","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"recipient","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[],"name":"Take","outputs":[],"type":"function"},{"inputs":[{"name":"_recipient","type":"address"},{"name":"_birthday","type":"uint256"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"recipient","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"HappyBirthday","type":"event"}]

6060604081815280610165833960a090525160805160008054600160a060020a031916909217825560015561012c90819061003990396000f3606060405236156100355760e060020a60003504635f9f4734811461004657806366d003ac1461004f578063ac110d8e14610061575b61007f600154421061008157610002565b61008360015481565b610083600054600160a060020a031681565b61007f60005433600160a060020a0390811691161461008d57610002565b005b565b6060908152602090f35b60015442101561009c57610002565b600054600160a060020a03908116606090815230909116316080527f7ff86a3550c489de55163d2ee165a3420b682f6daff6a7392e1b720405e6feb090604090a1600060009054906101000a9004600160a060020a0316600160a060020a0316600030600160a060020a031631604051809050600060405180830381858888f1935050505015156100815761000256

Deployed Bytecode

0x606060405236156100355760e060020a60003504635f9f4734811461004657806366d003ac1461004f578063ac110d8e14610061575b61007f600154421061008157610002565b61008360015481565b610083600054600160a060020a031681565b61007f60005433600160a060020a0390811691161461008d57610002565b005b565b6060908152602090f35b60015442101561009c57610002565b600054600160a060020a03908116606090815230909116316080527f7ff86a3550c489de55163d2ee165a3420b682f6daff6a7392e1b720405e6feb090604090a1600060009054906101000a9004600160a060020a0316600160a060020a0316600030600160a060020a031631604051809050600060405180830381858888f1935050505015156100815761000256

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000024a610718e248d2d624e850c1552871f32391a8800000000000000000000000000000000000000000000000000000000798603fc

-----Decoded View---------------
Arg [0] : _recipient (address): 0x24A610718E248D2D624E850C1552871F32391a88
Arg [1] : _birthday (uint256): 2038825980

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000024a610718e248d2d624e850c1552871f32391a88
Arg [1] : 00000000000000000000000000000000000000000000000000000000798603fc


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  ]

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.