Query editor
-- This query has been migrated to run on DuneSQL.-- If you need to change back because you’re seeing issues, use the Query History view to restore the previous version.-- If you notice a regression, please email [email protected].with transactions_summary AS (SELECT "from", count(*) as total_txn, sum(value / 1000000000000000000.00000)as total_valueFROMethereum."transactions"WHERE"to" = 0x4Dbd4fc535Ac27206064B68FfCf827b0A60BAB3fAND success and block_time between date'2023-03-01' and date'2023-06-30'group by 1 )SELECTCASEWHEN total_txn = 1 THEN '1'WHEN total_txn <= 10 THEN '1-10'WHEN total_txn <= 50 THEN '10-50'WHEN total_txn <= 100 THEN '50-100'WHEN total_txn <= 500 THEN '100-500'WHEN total_txn <= 1000 THEN '500-1000'WHEN total_txn <= 5000 THEN '1000-5000'WHEN total_txn <= 10000 THEN '5000-10000'WHEN total_txn <= 50000 THEN '10000-50000'WHEN total_txn <= 100000 THEN '50000-100000'ELSE '>100000'END AS txn_range,COUNT(DISTINCT "from") AS distinct_from_address,SUM(total_value) AS total_valueFROMtransactions_summaryGROUP BY 1ORDER BY 1;SELECT *,(value / 1000000000000000000.00000) AS total_valueFROM ethereum."transactions"WHERE "from" = 0xbfc5d82610b722e22d925257489f3305a3f3e605AND "to" = 0x4Dbd4fc535Ac27206064B68FfCf827b0A60BAB3fLIMIT 10