0xHaM-dUnique Tokens swapped
Updated 2023-02-13
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 tokenTb as (
select
'Ethereum' as source,
SYMBOL_IN as symbol,
count(DISTINCT tx_hash) as swap_cnt
from ethereum.core.ez_dex_swaps
where origin_to_address='0xce16f69375520ab01377ce7b88f5ba8c48f8d666'
group by 1,2
UNION
select
'Polygon' as source,
symbol,
count(DISTINCT tx_hash) as swap_cnt
from polygon.core.fact_event_logs inner join polygon.core.dim_contracts
on address=CONTRACT_ADDRESS
where origin_to_address='0xce16f69375520ab01377ce7b88f5ba8c48f8d666'
group by 1,2
UNION
select
'Arbitrum' as source,
symbol,
count(DISTINCT tx_hash) as swap_cnt
from arbitrum.core.fact_event_logs inner join arbitrum.core.dim_contracts
on address=CONTRACT_ADDRESS
where origin_to_address='0xce16f69375520ab01377ce7b88f5ba8c48f8d666'
group by 1,2
UNION
select
'Avalanche' as source,
symbol,
Run a query to Download Data