Query editor
WITH l AS (SELECT block_date AS day, contract_address, topic1, topic2, topic3, data,CAST(bytearray_to_uint256(bytearray_substring(data, 1, 32)) AS DOUBLE) AS w1,CAST(bytearray_to_uint256(bytearray_substring(data, 33, 32)) AS DOUBLE) / 1e18 AS w2_eth,CAST(bytearray_to_uint256(bytearray_substring(data, 65, 32)) AS DOUBLE) / 1e18 AS w3_eth,length(data) AS data_lenFROM arbitrum.logsWHERE ((block_date BETWEEN date '2026-06-01' AND date '2026-06-07') OR (block_date BETWEEN date '2026-10-01' AND date '2026-10-09'))AND topic0 = keccak(to_utf8('AuctionResolved(bool,uint64,address,address,uint256,uint256,uint64,uint64)')))SELECT day, contract_address, COUNT(*) AS rounds_sold, COUNT(DISTINCT topic3) AS n_ctrl, COUNT_IF(topic1 = 0x0000000000000000000000000000000000000000000000000000000000000001) AS n_multibid,MAX(data_len) AS data_len, MIN(w1) AS round_min, MAX(w1) AS round_max,ROUND(APPROX_PERCENTILE(w3_eth, 0.5), 6) AS price_p50_eth, ROUND(MAX(w3_eth), 5) AS price_max_eth, ROUND(SUM(w3_eth), 4) AS paid_eth,ROUND(MAX(w2_eth), 5) AS top_bid_eth,MAX_BY(topic3, w3_eth) AS top_ctrlFROM l GROUP BY 1, 2 ORDER BY 1