Query editor
SELECTdate_trunc('week', block_time) as week-- rev = transactin fees earned = L1 gas fees + L2 Gas Fees (gas price x gas used)-- , sum((l1_fee + gas_price * gas_used)/1e18) as revenue -- in native gas token-- , sum(price * (l1_fee + gas_price * gas_used) /1e18) as revenue_usd -- in USD, sum(l1_fee / 1e18) as l1_fees, sum(gas_price * gas_used / 1e18) as l2_feesFROM tac.transactionsWHERE gas_price > 0 -- remove system txnsAND block_time < date_trunc('week', NOW())and block_time >= date('2023-08-07') --base went live officially on Aug 9, so putting week start aka Aug 7 to start counting-- @TODO replace this ^^ with your own chain's launch dateGROUP BY 1