Query editor
/* Success! If you're still running into issues, check out https://dune.com/docs/query/syntax-differences/ or reach out in the #dune-sql Discord channel. */WITHREQ_Contract_interactions AS (SELECTCOUNT(*) AS count_daily_interactions,DATE_TRUNC('day', trans.block_time) AS timeFROMgnosis.traces AS transWHEREtrans.to = 0x2171a0dc12a9e5b1659fef2bb20e54c84fa7db0cGROUP BY2)SELECTSUM(r1.count_daily_interactions) AS count_monthly_interactions,DATE_TRUNC('month', r1.time) AS timeFROMREQ_Contract_interactions AS r1GROUP BY2ORDER BY2 DESC NULLS FIRST