randomcryptosame_address_tokens_cross_chain
Updated 2023-11-27
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 used_addresses AS (
select distinct(from_address) as from_address from (
select distinct(from_address) as from_address from ethereum.core.fact_transactions
where block_timestamp >= '2023-01-01'
union
select distinct(from_address) as from_address from arbitrum.core.fact_transactions
where block_timestamp >= '2023-01-01'
union
select distinct(from_address) as from_address from optimism.core.fact_transactions
where block_timestamp >= '2023-01-01'
union
select distinct(from_address) as from_address from polygon.core.fact_transactions
where block_timestamp >= '2023-01-01'
union
select distinct(from_address) as from_address from bsc.core.fact_transactions
where block_timestamp >= '2023-01-01'
union
select distinct(from_address) as from_address from avalanche.core.fact_transactions
where block_timestamp >= '2023-01-01'
)
),
wrapped_symbols AS (
select * from
(select 'eth' as chain, to_address, symbols from (
select to_address, ARRAY_UNIQUE_AGG(symbol) as symbols from
(select * from ethereum.core.ez_token_transfers where block_timestamp >= CURRENT_DATE - interval '30 day' and symbol REGEXP '[A-Z]+')
group by to_address, symbol
having count(distinct(from_address)) = 1 and count(distinct(origin_function_signature)) = 1
and min(origin_function_signature) = '0xa9059cbb'
and count(distinct(tx_hash)) <= 6
) where not ARRAY_CONTAINS('USDT'::VARIANT, symbols) and not ARRAY_CONTAINS('USDC'::VARIANT, symbols)
UNION
select 'arb' as chain, to_address, symbols from (
select to_address, ARRAY_UNIQUE_AGG(symbol) as symbols from
(select * from arbitrum.core.ez_token_transfers where block_timestamp >= CURRENT_DATE - interval '30 day' and symbol REGEXP '[A-Z]+')
group by to_address
Run a query to Download Data