maybeyonaspoly_adopt_tx_vol
Updated 2022-07-09Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
with txs as (
select
block_timestamp,
tx_hash
from polygon.core.fact_transactions
-- where block_timestamp > date_from_parts(2021,07,01)
-- order by block_timestamp
),
vol as(
select
date(block_timestamp) as date,
count(distinct tx_hash) as n,
case when date(block_timestamp) > date_from_parts(2022,06,30) then 'red' else 'blue' end as pre_post
from txs
group by date(block_timestamp)
)
select * from vol
where date > date_from_parts(2022,01,1)
Run a query to Download Data