MLDZMNNKB4
Updated 2023-02-24
999
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
›
⌄
--Credit to 0xHamed
with tab1 as (
SELECT
date_trunc('day', block_timestamp) as day,
'arbitrum' as source_chain,
origin_from_address as user,
tx_hash,
raw_amount as amt,
symbol as token
FROM arbitrum.core.fact_token_transfers
LEFT outer JOIN arbitrum.core.dim_contracts
ON address = contract_address
WHERE tx_hash in (
SELECT
tx_hash
FROM arbitrum.core.fact_event_logs
WHERE contract_address LIKE lower('0xe432150cce91c13a887f7D836923d5597adD8E31')
AND EVENT_NAME is NULL
)
UNION
SELECT
date_trunc('day', block_timestamp) as day,
'avalanche' as source_chain,
origin_from_address as user,
tx_hash,
raw_amount as amt,
symbol as token
FROM avalanche.core.fact_token_transfers
LEFT outer JOIN avalanche.core.dim_contracts
ON address = contract_address
WHERE tx_hash in (
SELECT
tx_hash
Run a query to Download Data