ETH Price: $2,576.13 (+2.57%)

Transaction Decoder

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

Emitted Events:

337 RelayReceiver.FundsForwardedWithData( data=0x1B1370FD6835A3709BA01BBC96EBD01BBF4003E1FF490E094AAE336D17A12A7A )

Account State Difference:

  Address   Before After State Difference Code
0x00DEb2E8...Af3C52852
0.002185553573444515 Eth
Nonce: 3
0.001146149286261165 Eth
Nonce: 4
0.00103940428718335
(beaverbuild)
19.335337575536721048 Eth19.335361304945708948 Eth0.0000237294089879
0xf70da978...8dfA3dbEF
(Relay: Solver)
635.046656734364575718 Eth635.047656734364575718 Eth0.001

Execution Trace

ETH 0.001 RelayReceiver.1b1370fd( )
  • ETH 0.001 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();
            }
        }
    }