ETH Price: $2,730.06 (+3.36%)

Transaction Decoder

Block:
22564668 at May-26-2025 04:43:59 AM +UTC
Transaction Fee:
0.00001311647327568 ETH $0.04
Gas Used:
32,638 Gas / 0.40187736 Gwei

Emitted Events:

399 RelayReceiver.FundsForwardedWithData( data=0xC0522C15B312187BA34EB842D3E40587362651647EA45CCF67C48B62326F003A )

Account State Difference:

  Address   Before After State Difference Code
(Titan Builder)
22.565611691749483021 Eth22.565612142428107497 Eth0.000000450678624476
0x7E92138e...F5197c014
0.0338 Eth
Nonce: 0
0.00378688352672432 Eth
Nonce: 1
0.03001311647327568
0xf70da978...8dfA3dbEF 319.349503454629830694 Eth319.379503454629830694 Eth0.03

Execution Trace

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