Transaction Hash:
Block:
22599954 at May-31-2025 03:13:35 AM +UTC
Transaction Fee:
0.00006038889915275 ETH
$0.12
Gas Used:
32,650 Gas / 1.849583435 Gwei
Emitted Events:
| 518 |
RelayReceiver.FundsForwardedWithData( data=0xAE1DDEAAC18C62F6938527415858F9948DC8F52DFF9044BBA23CB626DC04B341 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
|
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 13.945657969689298786 Eth | 13.945681878079742336 Eth | 0.00002390839044355 | |
| 0xE4c6bfd4...5f31c694b |
0.034348002683709662 Eth
Nonce: 0
|
0.031937613784556912 Eth
Nonce: 1
| 0.00241038889915275 | ||
| 0xf70da978...8dfA3dbEF | (Relay: Solver) | 152.080658875094746209 Eth | 152.083008875094746209 Eth | 0.00235 |
Execution Trace
ETH 0.00235
RelayReceiver.ae1ddeaa( )
- ETH 0.00235
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();
}
}
}