Query editor
WITH daily_counts AS (SELECTdate_trunc('day', block_time) AS day,COUNT(*) AS daily_tx_countFROMbase.tracesWHERE"to" = 0x1D3F8fcfE508D7031c242E213B27FbE432f52c67-- Using the correct Method ID for executeSwap (which is where the volume is)AND substring(input from 1 for 4) = 0x37941a72AND success = true-- Calculate from the beginning to ensure cumulative totals are correctAND block_time >= TIMESTAMP '2024-05-29 00:00:00'GROUP BY 1)SELECTday,daily_tx_count,-- This calculates the running total of all transactions up to that daySUM(daily_tx_count) OVER (ORDER BY day ASC) AS cumulative_tx_countFROMdaily_countsWHERE-- Only show the last 30 days in the graphday >= now() - interval '30' dayORDER BYday DESC