yasmin-n-d-r-hluna1
Updated 2023-01-07
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
33
34
›
⌄
select
date_trunc('day', block_timestamp) as date,
count(distinct tx_id) as no_txn,
(
sum(
iff(tx_succeeded = TRUE, 1, 0)
) / no_txn
) * 100 as success_rate,
sum(FEE) as paid_fee,
avg(FEE) as avg_fee,
-------------------------------
count(DISTINCT TX_SENDER) as senders,
sum(senders) over (
order by
date
) as cum_senders ,
count(
DISTINCT TX : body : messages[0] : to_address
) as receivers,
sum(
TX : body : messages[0] : amount[0] : amount
)/ pow(10, 6) as LUNA_volume,
no_txn /(7 * 24 * 60 * 60) as TPS
-----------------------------------
from
terra.core.fact_transactions
where
tx : body : messages[0] : amount[0] : denom = 'uluna'
and
GROUP by
1
Run a query to Download Data