ETH Price: $2,518.49 (-1.13%)

Transaction Decoder

Block:
22023001 at Mar-11-2025 10:22:35 AM +UTC
Transaction Fee:
0.000025398070395282 ETH $0.06
Gas Used:
32,638 Gas / 0.778174839 Gwei

Emitted Events:

403 RelayReceiver.FundsForwardedWithData( data=0x022AE5B426138C41B9AA30A866D90CD900870368C3C9AB62B8B03A0D3B4BCF43 )

Account State Difference:

  Address   Before After State Difference Code
0x0772f0ad...Ee8B86F0F
0.000653513565064026 Eth
Nonce: 13
0.000008343265668744 Eth
Nonce: 14
0.000645170299395282
(beaverbuild)
79.013356996922445074 Eth79.013357652109243564 Eth0.00000065518679849
0xf70da978...8dfA3dbEF 435.769788005122274871 Eth435.770407777351274871 Eth0.000619772229

Execution Trace

ETH 0.000619772229 RelayReceiver.022ae5b4( )
  • ETH 0.000619772229 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();
            }
        }
    }