HessishHop l2 users
Updated 2022-06-20Copy Reference Fork
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
›
⌄
with logs as (select TX_hash from ethereum.core.fact_event_logs
where origin_to_address In ('0x3666f603cc164936c1b87e207f36beba4ac5f18a','0xb98454270065a31d71bf635f6f7ee6a518dfb849','0x3e4a3a4796d16c0cd582c382691998f7c06420b6',
'0x22b1cbb8d98a01a3b71d034bb899775a76eb1cc2','0x3d4cc8a61c7528fd86c55cfe061a78dcba48edd1','0xb8901acb165ed027e32754e0ffe830802919727f') --hop contracts
and event_name = 'TransferSentToL2'
and EVENT_INPUTS:chainId IN ('10','42161','137')), --arbi and opti and poly ids
tokens as
(select distinct from_ADDRESs as users
from ethereum.core.ez_token_transfers
where TX_Hash in (SELECT tx_hash from logs)),
eth as (select distinct eth_from_ADDRESs as users
FROM ethereum.core.ez_eth_transfers
where TX_Hash in (SELECT tx_hash from logs)),
alls as
(select 't' as type, users
from tokens
UNION
select 'e' as type, users
from eth)
SELECT Count (DISTINCT users ) as wallets
from alls
Run a query to Download Data