Query editor
/* Migration success :)There are some cases such as unnest/sequence and array/json functions the migrator won't take care of for you(but we have examples of in the docs linked below!)If you're still running into issues, check out the doc examples https://dune.com/docs/reference/dune-v2/query-engine/or reach out to us in the Dune discord in the #dune-sql channel.*/SELECTDATE_TRUNC('month', block_time),COUNT(*),SUM(gas_used * (SELECTAVG(p.price)FROMprices.usd AS pWHEREp.symbol = 'ETH'AND p.minute = DATE_TRUNC('minute', t.block_time)LIMIT1) * 0.000000001)FROMethereum.traces AS tWHEREblock_time >= CAST(NOW() AS DATE) - INTERVAL '22' monthAND block_time < DATE_TRUNC('month', NOW())AND type = 'create'AND tx_success = TRUEGROUP BY1