Transaction Hash:
Block:
22780629 at Jun-25-2025 09:42:35 AM +UTC
Transaction Fee:
0.000189040452911136 ETH
$0.39
Gas Used:
32,976 Gas / 5.732667786 Gwei
Emitted Events:
| 349 |
RelayReceiver.FundsForwardedWithData( data=0xF3AA19F3F41132C59C20BD931C58477BF7AF90E68ED0AE1C9C26D6FCFD1BE90F865D8597 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
| 0x372e0A5C...A2e26d6B2 |
0.005550954977232965 Eth
Nonce: 4
|
0.004018842524321829 Eth
Nonce: 5
| 0.001532112452911136 | ||
|
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 6.162530334635469787 Eth | 6.162530337059205787 Eth | 0.000000002423736 | |
| 0xf70da978...8dfA3dbEF | (Relay: Solver) | 558.674416065402871068 Eth | 558.675759137402871068 Eth | 0.001343072 |
Execution Trace
ETH 0.001343072
RelayReceiver.f3aa19f3( )
- ETH 0.001343072
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();
}
}
}