Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 8 from a total of 8 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Fees | 5704024 | 8 days ago | IN | 0 ETH | 0.00000219 | ||||
Send Transaction | 5703974 | 8 days ago | IN | 0.00003 ETH | 0.00000216 | ||||
Send Transaction | 5703952 | 8 days ago | IN | 0.00003 ETH | 0.00000351 | ||||
Withdraw Fees | 5703855 | 8 days ago | IN | 0 ETH | 0.00000219 | ||||
Send Transaction | 5703833 | 8 days ago | IN | 0.00003 ETH | 0.00000216 | ||||
Send Transaction | 5703819 | 8 days ago | IN | 0.00003 ETH | 0.00000217 | ||||
Send Transaction | 5703809 | 8 days ago | IN | 0.00003 ETH | 0.00000352 | ||||
Send Transaction | 5703761 | 8 days ago | IN | 0.00003 ETH | 0.00000364 |
Latest 23 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
5704024 | 8 days ago | 0 ETH | ||||
5704024 | 8 days ago | 0.00006 ETH | ||||
5704024 | 8 days ago | 0 ETH | ||||
5704024 | 8 days ago | 0 ETH | ||||
5704024 | 8 days ago | 0 ETH | ||||
5703974 | 8 days ago | 0 ETH | ||||
5703974 | 8 days ago | 0.00003 ETH | ||||
5703952 | 8 days ago | 0 ETH | ||||
5703952 | 8 days ago | 0.00003 ETH | ||||
5703855 | 8 days ago | 0 ETH | ||||
5703855 | 8 days ago | 0.00012 ETH | ||||
5703855 | 8 days ago | 0 ETH | ||||
5703855 | 8 days ago | 0 ETH | ||||
5703855 | 8 days ago | 0 ETH | ||||
5703833 | 8 days ago | 0 ETH | ||||
5703833 | 8 days ago | 0.00003 ETH | ||||
5703819 | 8 days ago | 0 ETH | ||||
5703819 | 8 days ago | 0.00003 ETH | ||||
5703809 | 8 days ago | 0 ETH | ||||
5703809 | 8 days ago | 0.00003 ETH | ||||
5703761 | 8 days ago | 0 ETH | ||||
5703761 | 8 days ago | 0.00003 ETH | ||||
5703660 | 8 days ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
CustomFeeTransaction
Compiler Version
v0.8.24+commit.e11b9ed9
ZkSolc Version
v1.5.7
Optimization Enabled:
Yes with Mode 3
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; contract CustomFeeTransaction { address public constant FEE_RECIPIENT = 0x5255eF6956a77143D3F18978555c6cdCd4F2aA0A; uint256 public constant FIXED_FEE = 30000000000000; // 0.00003 ETH event TransactionSent(address indexed from); event FeesWithdrawn(uint256 amount); modifier onlyFeeRecipient() { require(msg.sender == FEE_RECIPIENT, "Only fee recipient can call this"); _; } function sendTransaction() external payable { require(msg.value == FIXED_FEE, "Must send exactly 0.00003 ETH"); emit TransactionSent(msg.sender); } function getContractBalance() external view returns (uint256) { return address(this).balance; } function withdrawFees() external onlyFeeRecipient { uint256 balance = address(this).balance; require(balance > 0, "No fees to withdraw"); (bool success, ) = payable(FEE_RECIPIENT).call{value: balance}(""); require(success, "Withdrawal failed"); emit FeesWithdrawn(balance); } }
{ "evmVersion": "paris", "optimizer": { "enabled": true, "mode": "3" }, "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": false, "libraries": {} }
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"}],"name":"TransactionSent","type":"event"},{"inputs":[],"name":"FEE_RECIPIENT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIXED_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sendTransaction","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b00000000000000000000000000000000000000000000000000000000000000000100005db1840b3dec0489612b56c0de848da45085e35b3edd24c4eb2862bcf400000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x00010000000000020000008003000039000000400030043f0000000100200190000000180000c13d0000003d00100198000000bb0000613d000000000101043b000000e0011002700000003e0010009c000000200000a13d0000003f0010009c000000410000613d000000400010009c000000490000613d000000410010009c000000bb0000c13d0000000001000416000000000001004b000000bb0000c13d0000004401000041000000800010043f0000004501000041000000ee0001042e0000000001000416000000000001004b000000bb0000c13d0000002001000039000001000010044300000120000004430000003c01000041000000ee0001042e000000420010009c0000005a0000613d000000430010009c000000bb0000c13d0000000001000416000000000001004b000000bb0000c13d0000000001000411000000440010009c0000006b0000c13d0000004e0100004100000000001004430000000001000410000000040010044300000000010004140000004a0010009c0000004a01008041000000c0011002100000004f011001c70000800a0200003900ed00e80000040f0000000100200190000000740000613d000000000301043b000000000003004b000000750000c13d000000400100043d00000044021000390000005a03000041000000000032043500000024021000390000001303000039000000c20000013d0000000001000416000000000001004b000000bb0000c13d000000000100041000ed00d40000040f000000800010043f0000004501000041000000ee0001042e0000000001000416000000460010009c000000610000c13d00000000010004140000004a0010009c0000004a01008041000000c0011002100000004b011001c70000800d02000039000000020300003900000000050004110000004c0400004100ed00e30000040f0000000100200190000000bb0000613d0000000001000019000000ee0001042e0000000001000416000000000001004b000000bb0000c13d0000004601000041000000800010043f0000004501000041000000ee0001042e0000004701000041000000800010043f0000002001000039000000840010043f0000001d01000039000000a40010043f0000004801000041000000c40010043f0000004901000041000000ef000104300000004701000041000000800010043f0000002001000039000000840010043f000000a40010043f0000004d01000041000000c40010043f0000004901000041000000ef00010430000000000001042f00000000010004140000004a0010009c0000004a01008041000000c0011002100000004b011001c70000800902000039000100000003001d0000004404000041000000000500001900ed00e30000040f00000060031002700000004a03300198000000a70000613d0000001f0430003900000050044001970000003f044000390000005104400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000000520040009c000000cd0000213d0000000100600190000000cd0000c13d000000400040043f0000001f0430018f0000000006350436000000530530019800000000035600190000009a0000613d000000000701034f000000007807043c0000000006860436000000000036004b000000960000c13d000000000004004b000000a70000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000000400100043d0000000100200190000000bd0000613d000000010200002900000000002104350000004a0010009c0000004a01008041000000400110021000000000020004140000004a0020009c0000004a02008041000000c002200210000000000112019f00000058011001c70000800d020000390000000103000039000000590400004100ed00e30000040f0000000100200190000000580000c13d0000000001000019000000ef00010430000000440210003900000056030000410000000000320435000000240210003900000011030000390000000000320435000000470200004100000000002104350000000402100039000000200300003900000000003204350000004a0010009c0000004a01008041000000400110021000000057011001c7000000ef000104300000005401000041000000000010043f0000004101000039000000040010043f0000005501000041000000ef00010430000000000001042f0000004e020000410000000000200443000000040010044300000000010004140000004a0010009c0000004a01008041000000c0011002100000004f011001c70000800a0200003900ed00e80000040f0000000100200190000000e20000613d000000000101043b000000000001042d000000000001042f000000e6002104210000000102000039000000000001042d0000000002000019000000000001042d000000eb002104230000000102000039000000000001042d0000000002000019000000000001042d000000ed00000432000000ee0001042e000000ef00010430000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000fffffffc000000000000000000000000000000000000000000000000000000000000000000000000000000006f9fb989000000000000000000000000000000000000000000000000000000006f9fb98a00000000000000000000000000000000000000000000000000000000a47a2e0600000000000000000000000000000000000000000000000000000000ebd090540000000000000000000000000000000000000000000000000000000023d1b06c00000000000000000000000000000000000000000000000000000000476343ee0000000000000000000000005255ef6956a77143d3f18978555c6cdcd4f2aa0a000000000000000000000000000000000000002000000080000000000000000000000000000000000000000000000000000000000000000000001b48eb57e00008c379a0000000000000000000000000000000000000000000000000000000004d7573742073656e642065786163746c7920302e303030303320455448000000000000000000000000000000000000000000006400000080000000000000000000000000000000000000000000000000000000000000000000000000ffffffff0200000000000000000000000000000000000000000000000000000000000000a8c4df5ccef93d90ae3245f440f739a9276d4eba965236e68880779b655656d74f6e6c792066656520726563697069656e742063616e2063616c6c20746869739cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f39020000020000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000003ffffffe0000000000000000000000000000000000000000000000000ffffffffffffffff00000000000000000000000000000000000000000000000000000000ffffffe04e487b710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000005769746864726177616c206661696c6564000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000002000000000000000000000000000000000000200000000000000000000000009800e6f57aeb4360eaa72295a820a4293e1e66fbfcabcd8874ae141304a76deb4e6f206665657320746f207769746864726177000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c8d25134a61da9591376d136be4802a6d545b8845ed6bcd34d1529736f65a3f6
Loading...
Loading
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.