false
false
0
The new Blockscout UI is now open source! Learn how to deploy it here
- We're indexing this chain right now. Some of the counts may be inaccurate.

Contract Address Details

0x4E5305b5Cf5E9252Fa4e402F2d99819b722c95Dd

Contract Name
Checkin
Creator
0xa50f0a–1b9053 at 0x751d92–209232
Balance
0 ETH
Tokens
Fetching tokens...
Transactions
4,404 Transactions
Transfers
0 Transfers
Gas Used
259,636,400
Last Balance Update
3524776
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
Checkin




Optimization enabled
true
Compiler version
v0.8.30+commit.73712a01




Optimization runs
200
EVM Version
prague




Verified at
2025-11-14T23:54:58.353081Z

contracts/gems/checkin.sol

//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts@4.9.1/access/Ownable.sol";
contract Checkin is Ownable{
    constructor(){

    }
    mapping(address=>mapping (uint256=>uint256)) public users ;
    event Ticket(address account , uint256 day, uint256 count);

    uint256 public price = 50000000000000;

    function setPrice(uint256 _price) public onlyOwner{
        price=_price;
    }

    function ticket() public payable{
        require(msg.value==price);
        uint256 day = block.timestamp/86400;
        users[msg.sender][day]++;
        require(users[msg.sender][day]<=100, "Daily limit"); 
        payable(owner()).transfer(address(this).balance);
        emit Ticket(msg.sender, day, users[msg.sender][day]);
    }
}
        

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
          

Compiler Settings

{"viaIR":true,"remappings":[],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"prague","compilationTarget":{"contracts/gems/checkin.sol":"Checkin"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Ticket","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false},{"type":"uint256","name":"day","internalType":"uint256","indexed":false},{"type":"uint256","name":"count","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"price","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPrice","inputs":[{"type":"uint256","name":"_price","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"ticket","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"users","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}]}]
              

Contract Creation Code

0x608080604052346063575f8054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3652d79883d20006002556103fa90816100688239f35b5f80fdfe6080806040526004361015610012575f80fd5b5f3560e01c90816354a02f9e14610318575080636cc25db7146101ef578063715018a6146101985780638da5cb5b1461017157806391b7f5ed14610150578063a035b1fe146101335763f2fde38b14610069575f80fd5b3461012f57602036600319011261012f57610082610357565b61008a61036d565b6001600160a01b031680156100db575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b5f80fd5b3461012f575f36600319011261012f576020600254604051908152f35b3461012f57602036600319011261012f5761016961036d565b600435600255005b3461012f575f36600319011261012f575f546040516001600160a01b039091168152602090f35b3461012f575f36600319011261012f576101b061036d565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b5f36600319011261012f57600254340361012f57620151804204335f52600160205260405f20815f5260205260405f2080545f198114610304576001019055335f52600160205260405f20815f52602052606460405f2054116102d1575f805481908190819047906001600160a01b03168282156102c8575bf1156102bd5760607f907db934d7c8a481e70787848b5fcbcbfe75eef9cb4ff0f3a0d473f4f70954fe91335f52600160205260405f20815f5260205260405f20546040519133835260208301526040820152a1005b6040513d5f823e3d90fd5b506108fc610268565b60405162461bcd60e51b815260206004820152600b60248201526a11185a5b1e481b1a5b5a5d60aa1b6044820152606490fd5b634e487b7160e01b5f52601160045260245ffd5b3461012f57604036600319011261012f576020906001600160a01b0361033c610357565b165f526001825260405f206024355f52825260405f20548152f35b600435906001600160a01b038216820361012f57565b5f546001600160a01b0316330361038057565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fdfea26469706673582212208c94576cc33ede91dbf9bd0efca05aa66712120d13d3ee1eaa41357a811ad18164736f6c634300081e0033

Deployed ByteCode

0x6080806040526004361015610012575f80fd5b5f3560e01c90816354a02f9e14610318575080636cc25db7146101ef578063715018a6146101985780638da5cb5b1461017157806391b7f5ed14610150578063a035b1fe146101335763f2fde38b14610069575f80fd5b3461012f57602036600319011261012f57610082610357565b61008a61036d565b6001600160a01b031680156100db575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b5f80fd5b3461012f575f36600319011261012f576020600254604051908152f35b3461012f57602036600319011261012f5761016961036d565b600435600255005b3461012f575f36600319011261012f575f546040516001600160a01b039091168152602090f35b3461012f575f36600319011261012f576101b061036d565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b5f36600319011261012f57600254340361012f57620151804204335f52600160205260405f20815f5260205260405f2080545f198114610304576001019055335f52600160205260405f20815f52602052606460405f2054116102d1575f805481908190819047906001600160a01b03168282156102c8575bf1156102bd5760607f907db934d7c8a481e70787848b5fcbcbfe75eef9cb4ff0f3a0d473f4f70954fe91335f52600160205260405f20815f5260205260405f20546040519133835260208301526040820152a1005b6040513d5f823e3d90fd5b506108fc610268565b60405162461bcd60e51b815260206004820152600b60248201526a11185a5b1e481b1a5b5a5d60aa1b6044820152606490fd5b634e487b7160e01b5f52601160045260245ffd5b3461012f57604036600319011261012f576020906001600160a01b0361033c610357565b165f526001825260405f206024355f52825260405f20548152f35b600435906001600160a01b038216820361012f57565b5f546001600160a01b0316330361038057565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fdfea26469706673582212208c94576cc33ede91dbf9bd0efca05aa66712120d13d3ee1eaa41357a811ad18164736f6c634300081e0033