0xHaM-dTFM Transactions
Updated 2023-11-13
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 raws as (
select
distinct tx_id
from terra.core.fact_msg_attributes_standard
where attribute_value = 'terra19hz374h6ruwtzrnm8ytkae782uv79h9yt9tuytgvt94t26c4793qnfg7vn'
and block_timestamp > CURRENT_DATE - 365
-- limit 1000
-- /*
)
, joined as (
select
t.*
from raws r
left join terra.core.fact_transactions t on t.tx_id = r.tx_id
)
, raw_analytics as (
select
date_trunc('week', block_timestamp) as day_date,
count(tx_id) as num_txs
from joined
group by 1
)
select
day_date,
num_txs,
sum(num_txs) over (order by day_date) as total_txs,
avg(num_txs) over (order by day_date) as avg_txs
from raw_analytics
order by 1
--*/
Run a query to Download Data