Transaction Hash:
Block:
22386731 at May-01-2025 04:50:23 AM +UTC
Transaction Fee:
0.00002947153726512 ETH
$0.06
Gas Used:
32,976 Gas / 0.89372687 Gwei
Emitted Events:
| 442 |
RelayReceiver.FundsForwardedWithData( data=0xC6F7989FA53693638514B873EEB2B0AAED1EB738109E7CFD867FC01832172F36865D8597 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
|
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 13.357207180238685244 Eth | 13.357223668238685244 Eth | 0.000016488 | |
| 0x9c6F35E8...ECb30F9e8 |
0.00417607367320454 Eth
Nonce: 8
|
0.004145540654699174 Eth
Nonce: 9
| 0.000030533018505366 | ||
| 0xf70da978...8dfA3dbEF | (Relay: Solver) | 307.872337692497503871 Eth | 307.872338753978744117 Eth | 0.000001061481240246 |
Execution Trace
ETH 0.000001061481240246
RelayReceiver.c6f7989f( )
- ETH 0.000001061481240246
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();
}
}
}