Afonso_DiazGrouping fees
Updated 2024-08-09
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
›
⌄
with t as (
select
tx_id,
block_timestamp,
tx_from as user,
(fee/1e6) as tx_fee
from lava.core.fact_transactions
where tx_succeeded = 1
and block_timestamp::date >= '2024-07-30'
)
select
case
when tx_fee <= 0.001 then '0.001 <= $LAVA'
when tx_fee <= 0.003 then '0.001- 0.003 $LAVA'
when tx_fee <= 0.005 then '0.003 - 0.005 $LAVA'
when tx_fee <= 0.1 then '0.005 - 0.1 $LAVA'
when tx_fee <= 0.5 then '0.1 - 0.5 $LAVA'
when tx_fee <= 1 then '0.5 - 1 $LAVA'
when tx_fee <= 5 then '1 - 5 $LAVA'
when tx_fee <= 10 then '5 - 10 $LAVA'
else 'More than 10 $LAVA'
end as type,
count(distinct tx_id) as transactions,
count(distinct user) as users
from t
group by 1
order by 1
QueryRunArchived: QueryRun has been archived