More Info
Private Name Tags
ContractCreator
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Birthday Gift | 6388690 | 2012 days ago | IN | 0 ETH | 0.000467 | ||||
0x7de70ab7 | 6068287 | 2066 days ago | IN | 0 ETH | 0.0011739 | ||||
Birthday Gift | 4386895 | 2352 days ago | IN | 0 ETH | 0.00018577 | ||||
0x0241621d | 4386891 | 2352 days ago | IN | 0 ETH | 0.00023478 | ||||
0xffd8ffe1 | 2048889 | 2786 days ago | IN | 1 ETH | 0.08728764 | ||||
0x60606040 | 2048558 | 2786 days ago | IN | Create: BirthdayGift | 0 ETH | 0.00472387 |
Loading...
Loading
Contract Name:
BirthdayGift
Compiler Version
v0.3.0-2016-03-30-c2cf806
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 24 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,580.53 | 1 | $3,580.53 |
[ 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.