ETH Price: $1,978.78 (-5.00%)

Transaction Decoder

Block:
22884381 at Jul-09-2025 09:44:23 PM +UTC
Transaction Fee:
0.0000791418216198 ETH $0.16
Gas Used:
32,650 Gas / 2.423945532 Gwei

Emitted Events:

423 RelayReceiver.FundsForwardedWithData( data=0xF4338BA6A97E51496A5FDBD4AEFF2956A6BF8CB932583E13805368E45E5D0C1A )

Account State Difference:

  Address   Before After State Difference Code
(Titan Builder)
30.422218790585036608 Eth30.422220423085036608 Eth0.0000016325
0xbA4e04DD...A76ACb6Df
0.001872515215785668 Eth
Nonce: 4
0.000793373394165868 Eth
Nonce: 5
0.0010791418216198
0xf70da978...8dfA3dbEF
(Relay: Solver)
505.6411746267410092 Eth505.6421746267410092 Eth0.001

Execution Trace

ETH 0.001 RelayReceiver.f4338ba6( )
  • ETH 0.001 Relay: Solver.CALL( )
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.23;
    contract RelayReceiver {
        // --- Structs ---
        struct Call {
            address to;
            bytes data;
            uint256 value;
        }
        // --- Errors ---
        error CallFailed();
        error NativeTransferFailed();
        error Unauthorized();
        // --- Events ---
        event FundsForwardedWithData(bytes data);
        // --- Fields ---
        address private immutable SOLVER;
        // --- Constructor ---
        constructor(address solver) {
            SOLVER = solver;
        }
        // --- Public methods ---
        fallback() external payable {
            send(SOLVER, msg.value);
            emit FundsForwardedWithData(msg.data);
        }
        function forward(bytes calldata data) external payable {
            send(SOLVER, msg.value);
            emit FundsForwardedWithData(data);
        }
        // --- Restricted methods ---
        function makeCalls(Call[] calldata calls) external payable {
            if (msg.sender != SOLVER) {
                revert Unauthorized();
            }
            unchecked {
                uint256 length = calls.length;
                for (uint256 i; i < length; i++) {
                    Call memory c = calls[i];
                    (bool success, ) = c.to.call{value: c.value}(c.data);
                    if (!success) {
                        revert CallFailed();
                    }
                }
            }
        }
        // --- Internal methods ---
        function send(address to, uint256 value) internal {
            bool success;
            assembly {
                // Save gas by avoiding copying the return data to memory.
                // Provide at most 100k gas to the internal call, which is
                // more than enough to cover common use-cases of logic for
                // receiving native tokens (eg. SCW payable fallbacks).
                success := call(100000, to, value, 0, 0, 0, 0)
            }
            if (!success) {
                revert NativeTransferFailed();
            }
        }
    }