Skip to content
Verified contractPartialMIT

TimeLock

Address0x23abc01a7f1d2aa12e1babc71d65f60db9af1ba8
Balance

0 ETH

 

Transactions

89

 

Compiler

solc 0.8.30

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.30+commit.73712a01
Language
solidity
Optimization
No
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
23,065,890
Creation transaction
0xd2c4e23518…b3cff1fea2

TimeLock.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract TimeLock {
    // Fixed owner address
    address public constant owner = 0x537Bcd6fC8EB996837b625e67AEc7F8E2Ba3657d;

    // May 20, 2026, 00:00:00 UTC => Unix timestamp: 1778995200
    uint256 public constant unlockTime = 1778995200;

    // Accept Ether
    receive() external payable {}

    // Withdraw only after unlock time
    function withdraw() external {
        require(msg.sender == owner, "Not the owner");
        require(block.timestamp >= unlockTime, "Too early to withdraw");

        payable(owner).transfer(address(this).balance);
    }

    // View balance
    function getBalance() external view returns (uint256) {
        return address(this).balance;
    }
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.