ETH Price: $2,539.21 (+1.31%)

Transaction Decoder

Block:
22854033 at Jul-05-2025 03:52:59 PM +UTC
Transaction Fee:
0.00001739392949275 ETH $0.04
Gas Used:
32,650 Gas / 0.532739035 Gwei

Emitted Events:

340 RelayReceiver.FundsForwardedWithData( data=0x8815D9C5E3079A99A9E78272AF152E69B98CB1DF727817E94A12354EE16F0D81 )

Account State Difference:

  Address   Before After State Difference Code
0x1BC8225a...63532c231
0.170387119398983334 Eth
Nonce: 220
0.169929725469490584 Eth
Nonce: 221
0.00045739392949275
(BuilderNet)
29.340296186606441863 Eth29.340297819106441863 Eth0.0000016325
0xf70da978...8dfA3dbEF
(Relay: Solver)
634.944036120401165546 Eth634.944476120401165546 Eth0.00044

Execution Trace

ETH 0.00044 RelayReceiver.8815d9c5( )
  • ETH 0.00044 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();
            }
        }
    }