MLDZMNAPA6
Updated 2022-12-01
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
32
›
⌄
with tt as (SELECT
distinct TO_ADDRESS as users,
BLOCK_TIMESTAMP,
sum(RAW_AMOUNT/1e18) as volume_ACX
from ethereum.core.ez_token_transfers
where FROM_ADDRESS = '0xe50b2ceac4f60e840ae513924033e753e2366487'
and contract_address = '0x44108f0223a3c3028f5fe7aec7f9bb2e66bef82f'
group by 1,2
),
tb2 as (
select
x.BLOCK_TIMESTAMP,
x.FROM_ADDRESS,
x.tx_hash,
sum(RAW_AMOUNT/1e18) as send,
x.TO_ADDRESS
from ethereum.core.fact_token_transfers x
join tt y on x.from_address = y.users and x.block_timestamp>y.block_timestamp
and contract_address = '0x44108f0223a3c3028f5fe7aec7f9bb2e66bef82f'
group by 1,2,3,5 )
select
date_trunc('hour',BLOCK_TIMESTAMP) as date,
LABEL_TYPE,
count(distinct FROM_ADDRESS) as users,
count(tx_hash) as count_txn,
sum(count_txn) over (partition by LABEL_TYPE order by date) as cum_txn
from tb2 q join ethereum.core.dim_labels w on q.TO_ADDRESS= w.address
where LABEL_TYPE not in ('chadmin','operator','token')
group by 1,2
Run a query to Download Data