ETH Price: $2,496.29 (-2.22%)

Transaction Decoder

Block:
22625178 at Jun-03-2025 04:00:11 PM +UTC
Transaction Fee:
0.00025506578587935 ETH $0.64
Gas Used:
32,650 Gas / 7.812122079 Gwei

Emitted Events:

388 RelayReceiver.FundsForwardedWithData( data=0xEE6E1977FF2FE1284B7867E9955CBF3968A468E8FF7BD380D3B8F8D2282DD1BD )

Account State Difference:

  Address   Before After State Difference Code
0x84F5967d...DFaE21151
0.4966117322460141 Eth
Nonce: 39
0.00620318164372065 Eth
Nonce: 40
0.49040855060229345
(beaverbuild)
13.925452689545237217 Eth13.925485339545237217 Eth0.00003265
0xf70da978...8dfA3dbEF 251.841296586939008609 Eth252.331450071755422709 Eth0.4901534848164141

Execution Trace

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