Query editor
-- Robinhood Chain headline metrics.---- WINDOWS END AT THE LAST INDEXED BLOCK, NOT now().-- Dune's indexing runs ~15 minutes (896s measured) behind wall clock. Ending the-- 30-day liveness window at now() counted that lag as sequencer downtime: of the-- 969 "missing" seconds in 30 days, ~896 were indexing lag. Anchoring to-- max(time) measures the sequencer instead of Dune's pipeline.---- TRANSACTION COUNTS EXCLUDE ARBOS SYSTEM TXS, matching the transaction-cost panel.-- Nitro emits one ArbitrumInternalTx per block (~10/sec, ~10% of all txs). Counting-- them inflated Total Transactions and TPS while the fee panel excluded them ---- the same dashboard reporting on two different bases. The NULL-safe predicate-- keeps contract-creation txs, whose `to` IS NULL.WITH bounds AS (SELECT max(time) AS t_end FROM robinhood.blocks),live AS (SELECT count(DISTINCT b.time) AS live_secondsFROM robinhood.blocks b, boundsWHERE b.date >= current_date - INTERVAL '31' DAYAND b.time > bounds.t_end - INTERVAL '30' DAYAND b.time <= bounds.t_end),blocks_24h AS (SELECT count(*) AS blocksFROM robinhood.blocks b, boundsWHERE b.date >= current_date - INTERVAL '2' DAYAND b.time > bounds.t_end - INTERVAL '24' HOURAND b.time <= bounds.t_end),txs_total AS (SELECTcount(*) AS txs_all,count_if("to" IS NULL OR "to" <> 0x00000000000000000000000000000000000a4b05) AS txs_userFROM robinhood.transactions),txs_24h AS (SELECTcount(*) AS txs_all,count_if("to" IS NULL OR "to" <> 0x00000000000000000000000000000000000a4b05) AS txs_userFROM robinhood.transactions t, boundsWHERE t.block_date >= current_date - INTERVAL '2' DAYAND t.block_time > bounds.t_end - INTERVAL '24' HOURAND t.block_time <= bounds.t_end)SELECT86400.0 / b.blocks AS avg_block_time_s,t24.txs_user / 86400.0 AS tps_24h,tt.txs_user AS total_transactions,100.0 * l.live_seconds / (30 * 86400.0) AS sequencer_liveness_pct,t24.txs_all / 86400.0 AS tps_24h_incl_system,tt.txs_all AS total_transactions_incl_systemFROM live l, blocks_24h b, txs_total tt, txs_24h t24