NavidCopy of Copy of Untitled Query
Updated 2022-08-10
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
›
⌄
with ranges as (
select
TX_HASH,
date_trunc('month', block_timestamp) as day,
case
when ETH_VALUE<0.01 then 'Under 0.01 ETH'
when ETH_VALUE>=0.01 and ETH_VALUE<0.1 then '0.01-0.1 ETH'
when ETH_VALUE>=0.1 and ETH_VALUE<1 then '0.1-1 ETH'
when ETH_VALUE>=1 and ETH_VALUE<10 then '1-10 ETH'
when ETH_VALUE>=10 and ETH_VALUE<100 then '10-100 ETH'
when ETH_VALUE>=100 then 'Above 100 ETH'
end as range
from
ethereum.core.fact_transactions t
join ethereum.core.dim_labels l on t.to_address = l.address
where
label like '%tornado cash%' and
status = 'SUCCESS' and
block_timestamp > '2021-08-01' and block_timestamp < '2022-08-01'
)
select
day,
range,
count(distinct TX_HASH) AS cnt
from
ranges
group by
day, range
order by
day asc
Run a query to Download Data