Afonso_DiazGrouping swappers
Updated 2025-01-19
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
34
35
36
›
⌄
with
main as (
select
tx_id,
block_timestamp,
nvl(swap_from_amount_usd, swap_to_amount_usd) as amount_usd,
case
when swap_program ilike 'meteora%' then 'Meteora'
when swap_program ilike 'phoenix%' then 'Phoenix'
when swap_program ilike 'raydium%' then 'Raydium'
when swap_program ilike 'orca%' then 'Orca'
when swap_program ilike 'jupiter%' then 'Jupiter'
end as platform,
swap_from_symbol as symbol_in,
swap_to_symbol as symbol_out,
swapper
from
solana.defi.ez_dex_swaps
where
'6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN' in (swap_from_mint, swap_to_mint)
and block_timestamp >= '2025-01-15'
),
users as (
select
swapper,
count(distinct tx_id) as transactions
from
main
group by 1
)
select
case
when transactions = 1 then 'a. 1 Transaction'
QueryRunArchived: QueryRun has been archived