ETH Price: $2,181.68 (-6.31%)

Transaction Decoder

Block:
22968396 at Jul-21-2025 03:15:11 PM +UTC
Transaction Fee:
0.000125839905652224 ETH $0.27
Gas Used:
32,976 Gas / 3.816105824 Gwei

Emitted Events:

729 RelayReceiver.FundsForwardedWithData( data=0xBD5476F62D79EDCA4B54B3726BF12280063DAE41064318D6F9B5591B07C69FA3865D8597 )

Account State Difference:

  Address   Before After State Difference Code
0x585e070C...65275477b
0.002914556704784988 Eth
Nonce: 17
0.002488716799132764 Eth
Nonce: 18
0.000425839905652224
(BuilderNet)
12.066191739095845269 Eth12.066192398615845269 Eth0.00000065952
0xf70da978...8dfA3dbEF
(Relay: Solver)
793.468957596586615581 Eth793.469257596586615581 Eth0.0003

Execution Trace

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