misaghlbUntitled Query
Updated 2022-09-19Copy 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
29
›
⌄
select
-- *
concat('0x',substring(data, len(data) - 39, len(data))) as token_address,
block_timestamp as date, tx_hash, origin_from_address as from_address,
case when token_address='0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' then 'USDC'
when token_address='0x82af49447d8a07e3bd95bd0d56f35241523fbab1' then 'WETH'
when token_address= '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1' then 'DAI'
when token_address= '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f' then 'WBTC'
when token_address= '0x17fc002b466eec40dae837fc4be5c67993ddbd6f' then 'FRAX'
when token_address= '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' then 'USDT'
when token_address='0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0' then 'UNI'
when token_address='0xf97f4df75117a78c1a5a0dbb814af92458539fb4' then 'LINK'
end as token,
case when token_address = '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' then event_inputs:value/10e5
when token_address = '0x82af49447d8a07e3bd95bd0d56f35241523fbab1' then event_inputs:value/10e17
when token_address = '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f' then event_inputs:value/10e17
when token_address = '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1' then event_inputs:value/10e17
when token_address = '0x17fc002b466eec40dae837fc4be5c67993ddbd6f' then event_inputs:value/10e17
when token_address = '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' then event_inputs:value/10e5
when token_address = '0xf97f4df75117a78c1a5a0dbb814af92458539fb4' then event_inputs:value/10e17
when token_address='0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0' then event_inputs:value/10e17
end as sum,
event_inputs:value
from arbitrum.core.fact_event_logs
where origin_to_address='0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba'
-- and event_name = 'Transfer'
and CONTRACT_ADDRESS = '0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba'
and tx_hash = '0xb6b59d0f0b1837c48978348bc3dc814714e08df9901f955855861abdecb2e906'
limit 100
Run a query to Download Data