Transaction Hash:
Block:
22332610 at Apr-23-2025 03:30:35 PM +UTC
Transaction Fee:
0.00021708392144565 ETH
$0.45
Gas Used:
32,650 Gas / 6.648818421 Gwei
Emitted Events:
| 388 |
RelayReceiver.FundsForwardedWithData( data=0xD9453B17DC7743FDD4A5B9699CB8038D9C51D7BD57D27FCB8488E2F7ED30522A )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
|
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 11.192975873837633125 Eth | 11.193016263228503325 Eth | 0.0000403893908702 | |
| 0xaFBC8716...EFd6c5298 |
0.001206175819152235 Eth
Nonce: 9
|
0.000189091897706585 Eth
Nonce: 10
| 0.00101708392144565 | ||
| 0xf70da978...8dfA3dbEF | (Relay: Solver) | 165.561039974223239747 Eth | 165.561839974223239747 Eth | 0.0008 |
Execution Trace
ETH 0.0008
RelayReceiver.d9453b17( )
- ETH 0.0008
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();
}
}
}