ETH Price: $2,958.18 (+0.91%)

Contract

0x05d1644220caeB2a1F0569616946C161620566F8

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Loot Box282574842026-01-24 11:51:241 hr ago1769255484IN
0x05d16442...1620566F8
0.00004 ETH0.00000180.04364394
Loot Box282560602026-01-24 10:59:321 hr ago1769252372IN
0x05d16442...1620566F8
0.00004 ETH0.000001640.03967631
Loot Box282528612026-01-24 9:03:163 hrs ago1769245396IN
0x05d16442...1620566F8
0.00004 ETH0.00000180.04364394
Loot Box282520272026-01-24 8:33:424 hrs ago1769243622IN
0x05d16442...1620566F8
0.00004 ETH0.000001640.03967631
Loot Box282502322026-01-24 7:28:405 hrs ago1769239720IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282484712026-01-24 6:02:266 hrs ago1769234546IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282443112026-01-24 3:23:009 hrs ago1769224980IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282443072026-01-24 3:22:529 hrs ago1769224972IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282443042026-01-24 3:22:389 hrs ago1769224958IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282443012026-01-24 3:22:249 hrs ago1769224944IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282442952026-01-24 3:22:029 hrs ago1769224922IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282442902026-01-24 3:21:429 hrs ago1769224902IN
0x05d16442...1620566F8
0.00004 ETH0.000002370.04051868
Loot Box282389722026-01-24 0:06:3012 hrs ago1769213190IN
0x05d16442...1620566F8
0.00004 ETH0.000001970.04761157
Loot Box282374822026-01-23 23:01:5813 hrs ago1769209318IN
0x05d16442...1620566F8
0.00004 ETH0.000002370.04051868
Loot Box282374142026-01-23 22:58:5413 hrs ago1769209134IN
0x05d16442...1620566F8
0.00004 ETH0.000001970.04761157
Loot Box282351792026-01-23 21:32:5815 hrs ago1769203978IN
0x05d16442...1620566F8
0.00004 ETH0.00000180.04364394
Loot Box282330582026-01-23 20:13:4616 hrs ago1769199226IN
0x05d16442...1620566F8
0.00004 ETH0.000002450.041904
Loot Box282303962026-01-23 18:35:4818 hrs ago1769193348IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282285722026-01-23 17:27:5019 hrs ago1769189270IN
0x05d16442...1620566F8
0.00004 ETH0.00000180.04364394
Loot Box282271792026-01-23 16:37:2620 hrs ago1769186246IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282263022026-01-23 16:05:1820 hrs ago1769184318IN
0x05d16442...1620566F8
0.00004 ETH0.00000180.04364394
Loot Box282254732026-01-23 15:34:5021 hrs ago1769182490IN
0x05d16442...1620566F8
0.00004 ETH0.00000180.04364394
Loot Box282245512026-01-23 15:00:4421 hrs ago1769180444IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282245042026-01-23 14:59:0421 hrs ago1769180344IN
0x05d16442...1620566F8
0.00004 ETH0.000001720.04166013
Loot Box282240062026-01-23 14:41:3622 hrs ago1769179296IN
0x05d16442...1620566F8
0.00004 ETH0.000001970.04761157
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
282574842026-01-24 11:51:241 hr ago1769255484
0x05d16442...1620566F8
0.00004 ETH
282560602026-01-24 10:59:321 hr ago1769252372
0x05d16442...1620566F8
0.00004 ETH
282528612026-01-24 9:03:163 hrs ago1769245396
0x05d16442...1620566F8
0.00004 ETH
282520272026-01-24 8:33:424 hrs ago1769243622
0x05d16442...1620566F8
0.00004 ETH
282502322026-01-24 7:28:405 hrs ago1769239720
0x05d16442...1620566F8
0.00004 ETH
282484712026-01-24 6:02:266 hrs ago1769234546
0x05d16442...1620566F8
0.00004 ETH
282443112026-01-24 3:23:009 hrs ago1769224980
0x05d16442...1620566F8
0.00004 ETH
282443072026-01-24 3:22:529 hrs ago1769224972
0x05d16442...1620566F8
0.00004 ETH
282443042026-01-24 3:22:389 hrs ago1769224958
0x05d16442...1620566F8
0.00004 ETH
282443012026-01-24 3:22:249 hrs ago1769224944
0x05d16442...1620566F8
0.00004 ETH
282442952026-01-24 3:22:029 hrs ago1769224922
0x05d16442...1620566F8
0.00004 ETH
282442902026-01-24 3:21:429 hrs ago1769224902
0x05d16442...1620566F8
0.00004 ETH
282389722026-01-24 0:06:3012 hrs ago1769213190
0x05d16442...1620566F8
0.00004 ETH
282374822026-01-23 23:01:5813 hrs ago1769209318
0x05d16442...1620566F8
0.00004 ETH
282374142026-01-23 22:58:5413 hrs ago1769209134
0x05d16442...1620566F8
0.00004 ETH
282351792026-01-23 21:32:5815 hrs ago1769203978
0x05d16442...1620566F8
0.00004 ETH
282330582026-01-23 20:13:4616 hrs ago1769199226
0x05d16442...1620566F8
0.00004 ETH
282303962026-01-23 18:35:4818 hrs ago1769193348
0x05d16442...1620566F8
0.00004 ETH
282285722026-01-23 17:27:5019 hrs ago1769189270
0x05d16442...1620566F8
0.00004 ETH
282271792026-01-23 16:37:2620 hrs ago1769186246
0x05d16442...1620566F8
0.00004 ETH
282263022026-01-23 16:05:1820 hrs ago1769184318
0x05d16442...1620566F8
0.00004 ETH
282254732026-01-23 15:34:5021 hrs ago1769182490
0x05d16442...1620566F8
0.00004 ETH
282245512026-01-23 15:00:4421 hrs ago1769180444
0x05d16442...1620566F8
0.00004 ETH
282245042026-01-23 14:59:0421 hrs ago1769180344
0x05d16442...1620566F8
0.00004 ETH
282240062026-01-23 14:41:3622 hrs ago1769179296
0x05d16442...1620566F8
0.00004 ETH
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SurfBox

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/access/Ownable.sol";

contract SurfBox is Ownable {
    address internal feeRecipient;
    uint256 public gasFee;

    error NoFund();
    error TransferFailed();

    mapping(address => uint256) private lastOpenDate;
    event OpenBox(address indexed sender, uint256 _timeOfLastUpdate);

    constructor(uint256 _gasFee, address _feeRecipient) {
        feeRecipient = _feeRecipient;
        gasFee = _gasFee;
    }

    function lootBox() external payable {
        if (msg.value != gasFee) {
            revert NoFund();
        }

        (bool success, ) = feeRecipient.call{value: msg.value}("");

        if (!success) {
            revert TransferFailed();
        }

        lastOpenDate[msg.sender] = block.timestamp;
        emit OpenBox(msg.sender, block.timestamp);
    }

    function updateConfig(
        uint256 _gasFee,
        address _feeRecipient
    ) external onlyOwner {
        feeRecipient = _feeRecipient;
        gasFee = _gasFee;
    }
}

// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT

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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"_gasFee","type":"uint256"},{"internalType":"address","name":"_feeRecipient","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NoFund","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_timeOfLastUpdate","type":"uint256"}],"name":"OpenBox","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"gasFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lootBox","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gasFee","type":"uint256"},{"internalType":"address","name":"_feeRecipient","type":"address"}],"name":"updateConfig","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161053538038061053583398101604081905261002f916100b0565b61003833610060565b600180546001600160a01b0319166001600160a01b03929092169190911790556002556100ed565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156100c357600080fd5b825160208401519092506001600160a01b03811681146100e257600080fd5b809150509250929050565b610439806100fc6000396000f3fe6080604052600436106100555760003560e01c806307a582d81461005a578063658612e91461007c578063715018a6146100a557806371fa4958146100ba5780638da5cb5b146100c2578063f2fde38b146100ea575b600080fd5b34801561006657600080fd5b5061007a610075366004610380565b61010a565b005b34801561008857600080fd5b5061009260025481565b6040519081526020015b60405180910390f35b3480156100b157600080fd5b5061007a610162565b61007a610198565b3480156100ce57600080fd5b506000546040516001600160a01b03909116815260200161009c565b3480156100f657600080fd5b5061007a6101053660046103ac565b610279565b6000546001600160a01b0316331461013d5760405162461bcd60e51b8152600401610134906103ce565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055600255565b6000546001600160a01b0316331461018c5760405162461bcd60e51b8152600401610134906103ce565b6101966000610314565b565b60025434146101ba57604051639b3a0eeb60e01b815260040160405180910390fd5b6001546040516000916001600160a01b03169034908381818185875af1925050503d8060008114610207576040519150601f19603f3d011682016040523d82523d6000602084013e61020c565b606091505b505090508061022e576040516312171d8360e31b815260040160405180910390fd5b33600081815260036020908152604091829020429081905591519182527f985873858e85c45546ea9ae9a4f36f740f1654da6c06d25bd88e3a1307ed22df910160405180910390a250565b6000546001600160a01b031633146102a35760405162461bcd60e51b8152600401610134906103ce565b6001600160a01b0381166103085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610134565b61031181610314565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461037b57600080fd5b919050565b6000806040838503121561039357600080fd5b823591506103a360208401610364565b90509250929050565b6000602082840312156103be57600080fd5b6103c782610364565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212202d78800456ddddfb45c79c1504c87eca32dd96c40c0e471b27c506411c78e09d64736f6c634300080d0033000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000538f85f181fbae0d1cd2f190ec903eb21e434bd8

Deployed Bytecode

0x6080604052600436106100555760003560e01c806307a582d81461005a578063658612e91461007c578063715018a6146100a557806371fa4958146100ba5780638da5cb5b146100c2578063f2fde38b146100ea575b600080fd5b34801561006657600080fd5b5061007a610075366004610380565b61010a565b005b34801561008857600080fd5b5061009260025481565b6040519081526020015b60405180910390f35b3480156100b157600080fd5b5061007a610162565b61007a610198565b3480156100ce57600080fd5b506000546040516001600160a01b03909116815260200161009c565b3480156100f657600080fd5b5061007a6101053660046103ac565b610279565b6000546001600160a01b0316331461013d5760405162461bcd60e51b8152600401610134906103ce565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055600255565b6000546001600160a01b0316331461018c5760405162461bcd60e51b8152600401610134906103ce565b6101966000610314565b565b60025434146101ba57604051639b3a0eeb60e01b815260040160405180910390fd5b6001546040516000916001600160a01b03169034908381818185875af1925050503d8060008114610207576040519150601f19603f3d011682016040523d82523d6000602084013e61020c565b606091505b505090508061022e576040516312171d8360e31b815260040160405180910390fd5b33600081815260036020908152604091829020429081905591519182527f985873858e85c45546ea9ae9a4f36f740f1654da6c06d25bd88e3a1307ed22df910160405180910390a250565b6000546001600160a01b031633146102a35760405162461bcd60e51b8152600401610134906103ce565b6001600160a01b0381166103085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610134565b61031181610314565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461037b57600080fd5b919050565b6000806040838503121561039357600080fd5b823591506103a360208401610364565b90509250929050565b6000602082840312156103be57600080fd5b6103c782610364565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212202d78800456ddddfb45c79c1504c87eca32dd96c40c0e471b27c506411c78e09d64736f6c634300080d0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000538f85f181fbae0d1cd2f190ec903eb21e434bd8

-----Decoded View---------------
Arg [0] : _gasFee (uint256): 25000000000000
Arg [1] : _feeRecipient (address): 0x538f85f181FbAE0d1cd2f190ec903EB21E434BD8

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000016bcc41e9000
Arg [1] : 000000000000000000000000538f85f181fbae0d1cd2f190ec903eb21e434bd8


Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.