Transaction Hash:
Block:
22402702 at May-03-2025 10:37:23 AM +UTC
Transaction Fee:
0.0000276125512602 ETH
$0.06
Gas Used:
32,650 Gas / 0.845713668 Gwei
Emitted Events:
| 480 |
RelayReceiver.FundsForwardedWithData( data=0xFE845EECE9DD32BE6DE9DEE4A085DAFC4FA6A57326D7B5B19BF39A20EF3BF82D )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
| 0x683Bd291...A29A201dF |
0.017996121841020051 Eth
Nonce: 12
|
0.002968509289759851 Eth
Nonce: 13
| 0.0150276125512602 | ||
|
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 9.061873309993697864 Eth | 9.061889634993697864 Eth | 0.000016325 | |
| 0xf70da978...8dfA3dbEF | (Relay: Solver) | 278.0538179638159867 Eth | 278.0688179638159867 Eth | 0.015 |
Execution Trace
ETH 0.015
RelayReceiver.fe845eec( )
- ETH 0.015
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();
}
}
}