DATETIME | TOTAL_MINT | CHANGE_7D | CHANGE_30D | |
---|---|---|---|---|
1 | 2025-01-20 00:00:00.000 | 1238623 | -10.079138472 | -47.770262578 |
tkvresearchuninterested-blush
Updated 2025-01-29
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
with full_table as
(select datetime,
total_mint,
(total_mint/lag(total_mint,1) over (order by datetime) -1)*100 as change_7d,
(total_mint/lag(total_mint,4) over (order by datetime) -1)*100 as change_30d
from
(select date_trunc('week',block_timestamp) as datetime,
sum(VALUE) as total_mint
--sum(sum(VALUE)) over (order by date(block_timestamp)) as total_mint
from berachain.testnet.fact_transactions
where value != 0
and
ORIGIN_FUNCTION_SIGNATURE = '0x298c0733'
group by 1)
)
select *
from full_table
where datetime = (select max(datetime) from full_table) - interval '7 day'
Last run: about 1 month ago
1
65B
34s