ETH Price: $2,713.25 (+2.96%)
Gas: 1.77 Gwei

Transaction Decoder

Block:
22561393 at May-25-2025 05:41:59 PM +UTC
Transaction Fee:
0.0000387525293526 ETH $0.11
Gas Used:
32,650 Gas / 1.186907484 Gwei

Emitted Events:

431 RelayReceiver.FundsForwardedWithData( data=0x7F69695A43C2EEAB7F5823200B164E7A3BEE13AD3B793D9A3779A33B10A191A0 )

Account State Difference:

  Address   Before After State Difference Code
(Titan Builder)
10.220822579142495372 Eth10.220838904142495372 Eth0.000016325
0xE38952Bc...fD0A1fF8C
0.02117677169899121 Eth
Nonce: 7
0.00016801916963861 Eth
Nonce: 8
0.0210087525293526
0xf70da978...8dfA3dbEF 389.5768627269558563 Eth389.5978327269558563 Eth0.02097

Execution Trace

ETH 0.02097 RelayReceiver.7f69695a( )
  • ETH 0.02097 0xf70da97812cb96acdf810712aa562db8dfa3dbef.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();
            }
        }
    }