ETH Price: $2,511.41 (-1.86%)

Transaction Decoder

Block:
22555733 at May-24-2025 10:39:35 PM +UTC
Transaction Fee:
0.0000442512330661 ETH $0.11
Gas Used:
32,650 Gas / 1.355321074 Gwei

Emitted Events:

202 RelayReceiver.FundsForwardedWithData( data=0x8B7E2A4F1B7E36F53EB2759CC191F70201F684A3C89D374860AC8467EFD98063 )

Account State Difference:

  Address   Before After State Difference Code
0x478C0C52...834bBB1A7
0.19862162437830175 Eth
Nonce: 53
0.0013987084757339 Eth
Nonce: 54
0.19722291590256785
(Titan Builder)
24.020564199465316862 Eth24.020594458457037762 Eth0.0000302589917209
0xf70da978...8dfA3dbEF 477.447308968193763001 Eth477.644487632863264751 Eth0.19717866466950175

Execution Trace

ETH 0.19717866466950175 RelayReceiver.8b7e2a4f( )
  • ETH 0.19717866466950175 0xf70da97812cb96acdf810712aa562db8dfa3dbef.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();
            }
        }
    }