BaseFeeChecker

Description:

Smart contract deployed on Ethereum with Factory features.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

{{
  "language": "Solidity",
  "sources": {
    "contracts/BaseFeeChecker.sol": {
      "content": "// SPDX-License-Identifier: MIT\r
pragma solidity ^0.8.7;\r
\r
contract BaseFeeChecker {\r
    /// @notice Returns the base fee (wei per gas) for the current block\r
    function getBaseFee() external view returns (uint256) {\r
        return block.basefee;\r
    }\r
\r
    /// @notice Helper that returns both the current block number and base fee\r
    function getBlockInfo() external view returns (uint256 blockNumber, uint256 baseFee) {\r
        blockNumber = block.number;\r
        baseFee = block.basefee;\r
    }\r
}"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": false,
      "runs": 200
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    },
    "remappings": []
  }
}}

Tags:
Factory|addr:0xc802f8687fee992ea2e423623be2bf0b24086e07|verified:true|block:23732085|tx:0xc15877ed2cbc47cd3c1030f488e1fe5767b120ef672e082023704652694a564b|first_check:1762347649

Submitted on: 2025-11-05 14:00:51

Comments

Log in to comment.

No comments yet.