Transaction Hash:
Block:
22340515 at Apr-24-2025 06:00:23 PM +UTC
Transaction Fee:
0.0001412661243979 ETH
$0.27
Gas Used:
32,650 Gas / 4.326680686 Gwei
Emitted Events:
| 147 |
RelayReceiver.FundsForwardedWithData( data=0x59D8D2C2AFAAABF067BF654DC1EE3A46BEACB586EACEBC5E6E55378D2082D548 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
|
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 6.235117233989002919 Eth | 6.235160831695751019 Eth | 0.0000435977067481 | |
| 0x974A0830...5f86b001b |
0.001609818499387347 Eth
Nonce: 2
|
0.000663643125295774 Eth
Nonce: 3
| 0.000946175374091573 | ||
| 0xf70da978...8dfA3dbEF | (Relay: Solver) | 278.979728588741803132 Eth | 278.980533497991496805 Eth | 0.000804909249693673 |
Execution Trace
ETH 0.000804909249693673
RelayReceiver.59d8d2c2( )
- ETH 0.000804909249693673
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();
}
}
}