LI.FITotal
Updated 2024-10-02
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
33
34
35
36
›
⌄
-- forked from Main @ https://flipsidecrypto.xyz/edit/queries/6648b297-70a6-48b6-bc1f-35b004de835a
with alltxns as (
SELECT *
FROM ethereum.core.fact_event_logs
WHERE origin_to_address = '0x2dfadab8266483bed9fd9a292ce56596a2d1378d' AND
topics[0] ='0xbeae048c6d270d9469f86cf6e8fedda3c60ad770f16c24c9fc131c8e9a09101d'
UNION
SELECT *
FROM avalanche.core.fact_event_logs
WHERE origin_to_address = '0x2dfadab8266483bed9fd9a292ce56596a2d1378d' AND
topics[0] ='0xbeae048c6d270d9469f86cf6e8fedda3c60ad770f16c24c9fc131c8e9a09101d'
UNION
SELECT *
FROM base.core.fact_event_logs
WHERE origin_to_address = '0x4dac9d1769b9b304cb04741dcdeb2fc14abdf110' AND
topics[0] ='0xbeae048c6d270d9469f86cf6e8fedda3c60ad770f16c24c9fc131c8e9a09101d'
UNION
SELECT *
FROM arbitrum.core.fact_event_logs
WHERE origin_to_address = '0x2dfadab8266483bed9fd9a292ce56596a2d1378d' AND
topics[0] ='0xbeae048c6d270d9469f86cf6e8fedda3c60ad770f16c24c9fc131c8e9a09101d'
),
all_decoded_logs as (
SELECT *, 'Arbitrum' as chain FROM arbitrum.core.ez_decoded_event_logs
WHERE block_timestamp >= '2024-03-01'
UNION ALL
SELECT *, 'BASE' as chain FROM base.core.ez_decoded_event_logs
WHERE block_timestamp >= '2024-03-01'
UNION ALL
SELECT *, 'Ethereum' as chain FROM ethereum.core.ez_decoded_event_logs
WHERE block_timestamp >= '2024-03-01'
UNION ALL
QueryRunArchived: QueryRun has been archived