Query editor
WITH sequencer_chains AS (SELECTchain_name,addr AS sequencerInbox_addressFROM query_5836372,UNNEST(sequencerInbox_address) AS t(addr)),batch_count AS (SELECTsc.chain_name,COUNT(*) AS total_batchesFROM arbitrum.transactions AS txJOIN sequencer_chains AS scON tx.to = sc.sequencerInbox_addressWHERE tx.block_time >= TIMESTAMP '2025-09-22 00:00:00'AND tx.block_time < TIMESTAMP '2025-09-29 00:00:00'GROUP BY sc.chain_name),chain_revenue AS (SELECTsc.chain_name,SUM(CAST(CASEWHEN tx.hash = from_hex('5377dda09cf12248dfbb40133f39f50d59c5f3e07e1430aea7ba2c815054e72e')THEN 605127674ELSE tx.gas_usedEND AS DOUBLE) * CAST(tx.effective_gas_price AS DOUBLE)) AS revenue_wei,SUM(CAST(CASEWHEN tx.hash = from_hex('5377dda09cf12248dfbb40133f39f50d59c5f3e07e1430aea7ba2c815054e72e')THEN 605127674ELSE tx.gas_usedEND AS DOUBLE) * CAST(tx.effective_gas_price AS DOUBLE) / 1e18) AS revenue_ethFROM arbitrum.transactions AS txJOIN sequencer_chains AS scON tx.to = sc.sequencerInbox_addressWHERE tx.block_time >= TIMESTAMP '2025-09-22 00:00:00'AND tx.block_time < TIMESTAMP '2025-09-29 00:00:00'GROUP BY sc.chain_name),gas_usage AS (SELECTsc.chain_name,SUM(CAST(CASEWHEN tx.hash = from_hex('5377dda09cf12248dfbb40133f39f50d59c5f3e07e1430aea7ba2c815054e72e')THEN 605127674ELSE tx.gas_usedEND AS DOUBLE