datasovrunAlpha List Eth Tokens copy
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
›
⌄
-- forked from nfrimando / Alpha List Eth Tokens @ https://flipsidecrypto.xyz/nfrimando/q/fy3cGPfUMnBf/alpha-list-eth-tokens
SELECT
to_char(dateadd(hh, 8, t.block_timestamp), 'yyyy-mm-dd hh:mm:ss') as time,
case
when t.FROM_address = lower('0x038f53DBCa4a42E769082dE4397915922F6e3F51') then 'outflow'
when t.to_address = lower('0x038f53DBCa4a42E769082dE4397915922F6e3F51') then 'inflow'
else null
end as action,
t.symbol,
t.amount,
t.amount_usd,
t.contract_address,
t.from_address,
t.to_address
FROM
ethereum.core.ez_token_transfers t
WHERE
(
t.FROM_ADDRESS IN (
lower('0x038f53DBCa4a42E769082dE4397915922F6e3F51')
)
OR t.TO_ADDRESS IN (
lower('0x038f53DBCa4a42E769082dE4397915922F6e3F51')
)
)
order by 1 desc