Afonso_DiazTop Stakers
Updated 2025-03-10
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
›
⌄
with
main as (
select
tx_hash,
block_timestamp,
origin_from_address as user,
iff(user = decoded_log:from, 'Stake', 'Unstake') as event_name,
contract_name as asset_name,
contract_address as token_address,
decoded_log:value / 1e18 as amount
from
avalanche.core.ez_decoded_event_logs
where
event_name = 'Transfer'
and contract_address != '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7'
and user in (decoded_log:from, decoded_log:to)
and origin_to_address = lower ('0xF2C15BD1BF3d7863A4b6d72F89758c18489794Aa')
)
select
user,
count(distinct tx_hash) as transactions
from
main
where
event_name = 'Stake'
group by 1
order by 2 desc
limit 10
QueryRunArchived: QueryRun has been archived