Transaction Hash:
Block:
21440080 at Dec-20-2024 12:14:11 AM +UTC
Transaction Fee:
0.000479877306713 ETH
$1.08
Gas Used:
32,650 Gas / 14.69762042 Gwei
Emitted Events:
423 |
RelayReceiver.FundsForwardedWithData( data=0x9A37057DB6B3F8D8E8475B7C9B503DC401204FC1C3138B1474C0AACB0E1C0E73 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x86cF81D6...89E2AeD1E |
0.00304181 Eth
Nonce: 0
|
0.002449234130806384 Eth
Nonce: 1
| 0.000592575869193616 | ||
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 9.581799563323028695 Eth | 9.581847893928230045 Eth | 0.00004833060520135 | |
0xf70da978...8dfA3dbEF | (Relay: Solver) | 219.125237496674810184 Eth | 219.1253501952372908 Eth | 0.000112698562480616 |
Execution Trace
ETH 0.000112698562480616
RelayReceiver.9a37057d( )
- ETH 0.000112698562480616
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(); } } }