kimkimPercentage from top5
Updated 2022-08-03
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
›
⌄
with link as
(select
PERMISSION:FunctionCall:receiver_id as contract,
count(tx_hash) as trans
FROM near.core.fact_actions_events_addkey
where PERMISSION:FunctionCall:receiver_id is not null
and block_timestamp >= '2021-09-01'
group by 1
order by 2 DESC
limit 5),
total_trans as
(
select
count(tx_hash) as alltrans
FROM near.core.fact_actions_events_addkey
where PERMISSION:FunctionCall:receiver_id is not null
and block_timestamp >= '2021-09-01')
select
totaltop5 / alltrans
from
(select sum(trans) as totaltop5,
alltrans
from total_trans
join link
group by 2)
Run a query to Download Data