ETH Price: $1,610.29 (+0.80%)

Transaction Decoder

Block:
22186109 at Apr-03-2025 04:50:11 AM +UTC
Transaction Fee:
0.00002883350385455 ETH $0.05
Gas Used:
32,650 Gas / 0.883108847 Gwei

Emitted Events:

485 RelayReceiver.FundsForwardedWithData( data=0x7D4BF4E1F9D83DCED778083776C1DF1244F83EB099568C918CCA4E5D836EA466 )

Account State Difference:

  Address   Before After State Difference Code
0x0186ca46...E7b6e949D
0.010041899935539867 Eth
Nonce: 28
0.000071585495500848 Eth
Nonce: 29
0.009970314440039019
(Titan Builder)
13.172820214074539892 Eth13.172836539074539892 Eth0.000016325
0xf70da978...8dfA3dbEF 513.323124571575438123 Eth513.333066052511622592 Eth0.009941480936184469

Execution Trace

ETH 0.009941480936184469 RelayReceiver.7d4bf4e1( )
  • ETH 0.009941480936184469 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();
            }
        }
    }