Query editor
-- Robinhood Chain (Arbitrum Orbit L2) — daily onchain economics-- Revenue = L2 gas fees actually charged (gas_used * effective_gas_price).-- VERIFIED against the Blockscout receipt for 0x0477262a...9038: Arbitrum Nitro-- does NOT charge the declared priority tip, so the charged price is the block-- base fee. Dune's `gas_price` column is the EIP-1559 formula price (base + tip)-- and is NOT what was paid; `gas.fees` uses it and overstates this chain ~10x.-- Ethereum cost= batch-posting txs to the SequencerInbox (execution gas + blob gas).-- Excludes validator assertion posting to 0x23a19d23... which runs ~0.33% of-- L1 cost (~0.002% of revenue) — immaterial, and matches the reference definition.-- Arbitrum fee = AEP licensing fee, 10% of net revenue (revenue - Ethereum cost)-- Gross profit = net revenue - Arbitrum licensing fee-- A calendar spine is used so that zero-activity days (2026-05-02/03/09/10) count as real-- zeros: rolling N-day windows span N calendar days and run-rates divide by elapsed time.WITH cal AS (SELECT CAST(d AS date) AS dayFROM UNNEST(sequence(DATE '2026-04-30', CURRENT_DATE - INTERVAL '1' DAY, INTERVAL '1' DAY)) AS t(d)),l2 AS (SELECTblock_date AS day,COUNT(*) AS txs,SUM(CAST(gas_used AS double) * CAST(effective_gas_price AS double)) / 1e18 AS fee_ethFROM robinhood.transactionsWHERE block_date >= DATE '2026-04-30'AND block_date < CURRENT_DATEGROUP BY 1),batch_tx AS (SELECTblock_date,hash,CAST(gas_used AS double) * CAST(gas_price AS double) / 1e18 AS exec_ethFROM ethereum.transactionsWHERE block_date >= DATE '2026-04-30'AND block_date < CURRENT_DATEAND "to" = 0xbd0d173eeb87d57a09521c24388a12789f33ba96 -- Robinhood Chain SequencerInbox),blob_tx AS (-- blob_gas_used on ethereum.logs is the TX's blob gas (verified = n_blobs * 131072),-- identical on every log of the tx, so MAX() is a safe per-tx pick.SELECTtx_hash,MAX(CAST(blob_gas_price AS double) * CAST(blob_gas_used AS double)) / 1e18 AS blob_ethFROM ethereum.logsWHERE block_date >= DATE '2026-04-30'AND block_date < CURRENT_DATEAND contract_address = 0xbd0d173eeb87d57a09521c24388a12789f33ba96GROUP BY 1),l1 AS (SELECTb.block_date AS day,COUNT(*) AS batches,SUM(b.exec_eth) AS l1_exec_eth,SUM(COALESCE(bl.blob_eth, 0)) AS l1_blob_ethFROM batch_tx b