ETH Price: $2,875.71 (-2.49%)
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Loot Box413022352026-01-26 2:16:5720 mins ago1769393817IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000710.01727425
Loot Box413011192026-01-26 1:39:4557 mins ago1769391585IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000460.00785935
Loot Box413005492026-01-26 1:20:451 hr ago1769390445IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000950.0230253
Loot Box413005282026-01-26 1:20:031 hr ago1769390403IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000850.02050033
Loot Box413003392026-01-26 1:13:451 hr ago1769390025IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000001140.0276518
Loot Box412999232026-01-26 0:59:531 hr ago1769389193IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000270.00657547
Loot Box412995272026-01-26 0:46:411 hr ago1769388401IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000180.00437795
Loot Box412984532026-01-26 0:10:532 hrs ago1769386253IN
0xD04Fd754...02716e9b7
0.00004 ETH0.00000040.00972926
Loot Box412984452026-01-26 0:10:372 hrs ago1769386237IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000430.01056186
Loot Box412984392026-01-26 0:10:252 hrs ago1769386225IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000530.01302294
Loot Box412984212026-01-26 0:09:492 hrs ago1769386189IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000560.01351688
Loot Box412982322026-01-26 0:03:312 hrs ago1769385811IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000690.01183696
Loot Box412980742026-01-25 23:58:152 hrs ago1769385495IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000190.00465003
Loot Box412979702026-01-25 23:54:472 hrs ago1769385287IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000220.00533101
Loot Box412974452026-01-25 23:37:173 hrs ago1769384237IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000280.00695274
Loot Box412973312026-01-25 23:33:293 hrs ago1769384009IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000330.00812786
Loot Box412971102026-01-25 23:26:073 hrs ago1769383567IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000360.00869389
Loot Box412969672026-01-25 23:21:213 hrs ago1769383281IN
0xD04Fd754...02716e9b7
0.00004 ETH0.00000040.00986016
Loot Box412952922026-01-25 22:25:314 hrs ago1769379931IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000001180.02013713
Loot Box412951372026-01-25 22:20:214 hrs ago1769379621IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000490.01197042
Loot Box412949042026-01-25 22:12:354 hrs ago1769379155IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000001060.02556385
Loot Box412948052026-01-25 22:09:174 hrs ago1769378957IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000001760.04262011
Loot Box412947952026-01-25 22:08:574 hrs ago1769378937IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000001880.04555102
Loot Box412941552026-01-25 21:47:374 hrs ago1769377657IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000380.00936094
Loot Box412939132026-01-25 21:39:334 hrs ago1769377173IN
0xD04Fd754...02716e9b7
0.00004 ETH0.000000360.00886175
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
413022352026-01-26 2:16:5720 mins ago1769393817
0xD04Fd754...02716e9b7
0.00004 ETH
413011192026-01-26 1:39:4557 mins ago1769391585
0xD04Fd754...02716e9b7
0.00004 ETH
413005492026-01-26 1:20:451 hr ago1769390445
0xD04Fd754...02716e9b7
0.00004 ETH
413005282026-01-26 1:20:031 hr ago1769390403
0xD04Fd754...02716e9b7
0.00004 ETH
413003392026-01-26 1:13:451 hr ago1769390025
0xD04Fd754...02716e9b7
0.00004 ETH
412999232026-01-26 0:59:531 hr ago1769389193
0xD04Fd754...02716e9b7
0.00004 ETH
412995272026-01-26 0:46:411 hr ago1769388401
0xD04Fd754...02716e9b7
0.00004 ETH
412984532026-01-26 0:10:532 hrs ago1769386253
0xD04Fd754...02716e9b7
0.00004 ETH
412984452026-01-26 0:10:372 hrs ago1769386237
0xD04Fd754...02716e9b7
0.00004 ETH
412984392026-01-26 0:10:252 hrs ago1769386225
0xD04Fd754...02716e9b7
0.00004 ETH
412984212026-01-26 0:09:492 hrs ago1769386189
0xD04Fd754...02716e9b7
0.00004 ETH
412982322026-01-26 0:03:312 hrs ago1769385811
0xD04Fd754...02716e9b7
0.00004 ETH
412980742026-01-25 23:58:152 hrs ago1769385495
0xD04Fd754...02716e9b7
0.00004 ETH
412979702026-01-25 23:54:472 hrs ago1769385287
0xD04Fd754...02716e9b7
0.00004 ETH
412974452026-01-25 23:37:173 hrs ago1769384237
0xD04Fd754...02716e9b7
0.00004 ETH
412973312026-01-25 23:33:293 hrs ago1769384009
0xD04Fd754...02716e9b7
0.00004 ETH
412971102026-01-25 23:26:073 hrs ago1769383567
0xD04Fd754...02716e9b7
0.00004 ETH
412969672026-01-25 23:21:213 hrs ago1769383281
0xD04Fd754...02716e9b7
0.00004 ETH
412952922026-01-25 22:25:314 hrs ago1769379931
0xD04Fd754...02716e9b7
0.00004 ETH
412951372026-01-25 22:20:214 hrs ago1769379621
0xD04Fd754...02716e9b7
0.00004 ETH
412949042026-01-25 22:12:354 hrs ago1769379155
0xD04Fd754...02716e9b7
0.00004 ETH
412948052026-01-25 22:09:174 hrs ago1769378957
0xD04Fd754...02716e9b7
0.00004 ETH
412947952026-01-25 22:08:574 hrs ago1769378937
0xD04Fd754...02716e9b7
0.00004 ETH
412941552026-01-25 21:47:374 hrs ago1769377657
0xD04Fd754...02716e9b7
0.00004 ETH
412939132026-01-25 21:39:334 hrs ago1769377173
0xD04Fd754...02716e9b7
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 Difficulty Gas Used Reward
View All Blocks Produced

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.