tongzzezTop 5 contracts in last 30 days
Updated 2022-07-31
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
›
⌄
with min_date_info as(
select
min(a.block_timestamp::date) as min_date,
tx_receiver
from
near.core.fact_transactions a
inner join near.core.fact_actions_events_function_call b
on a.tx_hash = b.tx_hash
group by
tx_receiver
having
min_date >= CURRENT_DATE - 30
and min_date < CURRENT_DATE
)
select
tx_receiver,
count(tx_hash) as num_tx
from
near.core.fact_transactions
where
tx_receiver in (select tx_receiver from min_date_info)
and block_timestamp::date >= CURRENT_DATE - 30
and block_timestamp::date < CURRENT_DATE
group by
tx_receiver
order by
num_tx desc
Run a query to Download Data