john-adamUntitled Query
Updated 2022-10-23
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
select
balance_date::date as date,
case when user_address = '0x99c9fc46f92e8a1c0dec1b1747d010903e884be1' then 'Optimism Bridge' else 'Hop Bridge' end as labeling,
sum(amount_usd) as total
from
flipside_prod_db.ethereum.erc20_balances
where
YEAR(balance_date::date) = 2022
and
user_address
in (
'0xb8901acb165ed027e32754e0ffe830802919727f', -- eth
'0x3666f603cc164936c1b87e207f36beba4ac5f18a', -- usdc
'0x3e4a3a4796d16c0cd582c382691998f7c06420b6', -- usdt
'0x3d4cc8a61c7528fd86c55cfe061a78dcba48edd1', -- dai
'0x22b1cbb8d98a01a3b71d034bb899775a76eb1cc2', -- matic\
'0x99c9fc46f92e8a1c0dec1b1747d010903e884be1'
)
group by 1, 2
Run a query to Download Data