Abstract Testnet

Contract

0x34f0Ede816243504a85397Ed8799Fc7DDCb651B8

Overview

ETH Balance

0 ETH

Multichain Info

N/A
Transaction Hash
Method
Block
From
To

There are no matching entries

1 Internal Transaction found.

Latest 1 internal transaction

Parent Transaction Hash Block From To
57033602025-02-03 18:17:403 days ago1738606660  Contract Creation0 ETH
Loading...
Loading

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)

File 1 of 1 : CustomFeeTransaction.sol
// 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, address indexed to);
    event FeesWithdrawn(uint256 amount);

    modifier onlyFeeRecipient() {
        require(msg.sender == FEE_RECIPIENT, "Only fee recipient can call this");
        _;
    }

    function sendTransactionWithFee(address payable _to) external payable {
        require(msg.value == FIXED_FEE, "Must send exactly 0.00003 ETH");
        
        // Store fee in contract
        emit TransactionSent(msg.sender, _to);
    }

    function getFeeAmount() external pure returns (uint256) {
        return FIXED_FEE;
    }

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

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": true,
    "mode": "3"
  },
  "outputSelection": {
    "*": {
      "*": [
        "abi",
        "metadata"
      ],
      "": [
        "ast"
      ]
    }
  },
  "detectMissingLibraries": false,
  "forceEVMLA": false,
  "enableEraVMExtensions": false,
  "libraries": {}
}

Contract ABI

[{"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"},{"indexed":true,"internalType":"address","name":"to","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":"getFeeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"sendTransactionWithFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]

9c4d535b000000000000000000000000000000000000000000000000000000000000000001000061e47a6d6ddd705b9fb285a09c05322109539666dd0b79d8632fd0320000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x00010000000000020000008003000039000000400030043f0000000100200190000000300000c13d00000060021002700000003f03200197000000040030008c000000c60000413d000000000201043b000000e002200270000000410020009c000000380000213d000000450020009c0000004c0000613d000000460020009c000000450000613d000000470020009c000000c60000c13d0000000001000416000000000001004b000000c60000c13d0000000001000411000000480010009c0000006c0000c13d0000004d0100004100000000001004430000000001000410000000040010044300000000010004140000003f0010009c0000003f01008041000000c0011002100000004e011001c70000800a0200003900f800f30000040f0000000100200190000000750000613d000000000301043b000000000003004b000000800000c13d000000400100043d00000044021000390000005a03000041000000000032043500000024021000390000001303000039000000cd0000013d0000000001000416000000000001004b000000c60000c13d0000002001000039000001000010044300000120000004430000004001000041000000f90001042e000000420020009c000000640000613d000000430020009c000000450000613d000000440020009c000000c60000c13d0000000001000416000000000001004b000000c60000c13d0000004801000041000000800010043f0000004901000041000000f90001042e0000000001000416000000000001004b000000c60000c13d0000005b01000041000000800010043f0000004901000041000000f90001042e000000240030008c000000c60000413d0000000401100370000000000101043b0000005c0010009c000000c60000213d00000000020004160000005b0020009c000000760000c13d0000005c0610019700000000010004140000003f0010009c0000003f01008041000000c0011002100000004f011001c70000800d02000039000000030300003900000000050004110000005e0400004100f800ee0000040f0000000100200190000000c60000613d0000000001000019000000f90001042e0000000001000416000000000001004b000000c60000c13d000000000100041000f800df0000040f000000800010043f0000004901000041000000f90001042e0000004a01000041000000800010043f0000002001000039000000840010043f000000a40010043f0000004b01000041000000c40010043f0000004c01000041000000fa00010430000000000001042f0000004a01000041000000800010043f0000002001000039000000840010043f0000001d01000039000000a40010043f0000005d01000041000000c40010043f0000004c01000041000000fa0001043000000000010004140000003f0010009c0000003f01008041000000c0011002100000004f011001c70000800902000039000100000003001d0000004804000041000000000500001900f800ee0000040f00000060031002700000003f03300198000000b20000613d0000001f0430003900000050044001970000003f044000390000005104400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000000520040009c000000d80000213d0000000100600190000000d80000c13d000000400040043f0000001f0430018f000000000635043600000053053001980000000003560019000000a50000613d000000000701034f000000007807043c0000000006860436000000000036004b000000a10000c13d000000000004004b000000b20000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000000400100043d0000000100200190000000c80000613d000000010200002900000000002104350000003f0010009c0000003f01008041000000400110021000000000020004140000003f0020009c0000003f02008041000000c002200210000000000112019f00000058011001c70000800d020000390000000103000039000000590400004100f800ee0000040f0000000100200190000000620000c13d0000000001000019000000fa000104300000004402100039000000560300004100000000003204350000002402100039000000110300003900000000003204350000004a0200004100000000002104350000000402100039000000200300003900000000003204350000003f0010009c0000003f01008041000000400110021000000057011001c7000000fa000104300000005401000041000000000010043f0000004101000039000000040010043f0000005501000041000000fa00010430000000000001042f0000004d020000410000000000200443000000040010044300000000010004140000003f0010009c0000003f01008041000000c0011002100000004e011001c70000800a0200003900f800f30000040f0000000100200190000000ed0000613d000000000101043b000000000001042d000000000001042f000000f1002104210000000102000039000000000001042d0000000002000019000000000001042d000000f6002104230000000102000039000000000001042d0000000002000019000000000001042d000000f800000432000000f90001042e000000fa00010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff0000000200000000000000000000000000000040000001000000000000000000000000000000000000000000000000000000000000000000000000006f9fb989000000000000000000000000000000000000000000000000000000006f9fb98a00000000000000000000000000000000000000000000000000000000bf5c982200000000000000000000000000000000000000000000000000000000ebd09054000000000000000000000000000000000000000000000000000000001330f7a90000000000000000000000000000000000000000000000000000000023d1b06c00000000000000000000000000000000000000000000000000000000476343ee0000000000000000000000005255ef6956a77143d3f18978555c6cdcd4f2aa0a000000000000000000000000000000000000002000000080000000000000000008c379a0000000000000000000000000000000000000000000000000000000004f6e6c792066656520726563697069656e742063616e2063616c6c207468697300000000000000000000000000000000000000640000008000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f390200000200000000000000000000000000000024000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000003ffffffe0000000000000000000000000000000000000000000000000ffffffffffffffff00000000000000000000000000000000000000000000000000000000ffffffe04e487b710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000005769746864726177616c206661696c6564000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000002000000000000000000000000000000000000200000000000000000000000009800e6f57aeb4360eaa72295a820a4293e1e66fbfcabcd8874ae141304a76deb4e6f206665657320746f2077697468647261770000000000000000000000000000000000000000000000000000000000000000000000000000001b48eb57e000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff4d7573742073656e642065786163746c7920302e303030303320455448000000027fc20e63465f17e4301b09222273bdcd60846fa3189afc7963d69727b4557800000000000000000000000000000000000000000000000000000000000000007a61ada6e428c02d4eab9405b9ba97688fb103159b5a0d363e8782ddfd6c8bfb

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.