ETH Price: $2,575.76 (+2.56%)

Transaction Decoder

Block:
22854030 at Jul-05-2025 03:52:23 PM +UTC
Transaction Fee:
0.0000299847594081 ETH $0.08
Gas Used:
32,650 Gas / 0.918369354 Gwei

Emitted Events:

421 RelayReceiver.FundsForwardedWithData( data=0x2715A6BF922EA7B77E34C49F467374D6E91E405C46F78C1E5EDC5FF587C69DDA )

Account State Difference:

  Address   Before After State Difference Code
0x4c13Defd...A6248b620
0.005096185522806662 Eth
Nonce: 3
0.005046200763398562 Eth
Nonce: 4
0.0000499847594081
(beaverbuild)
19.336213253242849194 Eth19.336227563124061844 Eth0.00001430988121265
0xf70da978...8dfA3dbEF
(Relay: Solver)
635.050656734364575718 Eth635.050676734364575718 Eth0.00002

Execution Trace

ETH 0.00002 RelayReceiver.2715a6bf( )
  • ETH 0.00002 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();
            }
        }
    }