MLDZMNterradash7
Updated 2022-12-05
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
›
⌄
with tb1 as(
select
date_trunc('minute',block_timestamp) as minute,
TX_SENDER as bt_address,
count (tx_id) as count_transacions
from terra.core.fact_transactions
group by 1, 2 having count_transacions > 20)
select
date_trunc('{{Time_basis}}',BLOCK_TIMESTAMP) as date,
case
when TX_SENDER in (select bt_address from tb1 ) then 'BOTS'
else 'Regular Users' end as wlts,
count (tx_id) as count_transactions,
sum(FEE) as paid_fee
from terra.core.fact_transactions
group by 1,2
Run a query to Download Data