HosseinUntitled Query
Updated 2023-02-02
99
1
2
3
4
5
6
7
8
9
10
11
›
⌄
select
receiver_id as validator,
count(distinct a.tx_hash) as stakes_count
from near.core.fact_receipts a,
lateral flatten(input => logs) c
join near.core.fact_transactions b
where c.value ilike '%contract total staked balance is%'
and a.tx_hash = b.tx_hash
group by validator
order by stakes_count desc
limit 20
Run a query to Download Data