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": []
}
}}
Submitted on: 2025-11-05 14:00:51
Comments
Log in to comment.
No comments yet.