ETH Price: $1,986.10 (-4.70%)

Transaction Decoder

Block:
22679182 at Jun-11-2025 05:18:47 AM +UTC
Transaction Fee:
0.000068896738465344 ETH $0.14
Gas Used:
32,976 Gas / 2.089299444 Gwei

Emitted Events:

620 RelayReceiver.FundsForwardedWithData( data=0x5E178B803904D9A51F8DCD53FBD008A787F148D2BE5FC706215078EEE68E04FE865D8597 )

Account State Difference:

  Address   Before After State Difference Code
(beaverbuild)
13.797135630686240106 Eth13.797152118686240106 Eth0.000016488
0x9a3b98ee...eb75d088A
0.006598212333557461 Eth
Nonce: 18
0.002129315595092117 Eth
Nonce: 19
0.004468896738465344
0xf70da978...8dfA3dbEF
(Relay: Solver)
701.504729353193308306 Eth701.509129353193308306 Eth0.0044

Execution Trace

ETH 0.0044 RelayReceiver.5e178b80( )
  • ETH 0.0044 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();
            }
        }
    }