nitsTop Applications calls
Updated 2022-07-02
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
›
⌄
with top as
(
SELECT app_id as id, COUNT(DISTINCT tx_id) as total_calls FROM ALGORAND.APPLICATION_CALL_TRANSACTION
-- where block_timestamp >= '2022-01-01'
GROUP by 1
order by 2 desc
LIMIT 10 )
SELECT date(block_timestamp) as day, count(DISTINCT tx_id) as total_txs,
case when day>='2022-01-01' then 'after' else 'before' end as type,
avg(total_txs) over (partition by type order by day) as avg_txs
FROM ALGORAND.APPLICATION_CALL_TRANSACTION
where day >= '2021-07-01' and app_id in (SELECT id from top )
GROUP by 1
-- LIMIT 10
-- LIMIT 10
Run a query to Download Data