freemartianbridge to linea copy
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
›
⌄
-- forked from bridge to linea @ https://flipsidecrypto.xyz/edit/queries/a9b68d6f-51b0-4e34-888e-098af3a0f121
with
ethereum AS (
select
date_trunc(day, block_timestamp) AS day,
count(DISTINCT from_address) AS wallet_count,
count(tx_hash) AS transacton_count,
sum(eth_value) AS eth_value,
'Ethereum' AS from_chain
FROM ethereum.core.fact_traces
WHERE RIGHT (ethereum.public.udf_hex_to_int(data:value :: STRING),4) = 9023
AND to_address IN ('0xe4edb277e41dc89ab076a1f049f4a3efa700bce8','0x80c67432656d59144ceff962e8faf8926599bcf8')
AND block_timestamp::date > '2023-07-01'
GROUP BY day, from_chain
),
optimism AS (
select
date_trunc(day, block_timestamp) AS day,
count(DISTINCT from_address) AS wallet_count,
count(tx_hash) AS transacton_count,
sum(eth_value) AS eth_value,
'Optimism' AS from_chain
FROM optimism.core.fact_traces
WHERE RIGHT (optimism.public.udf_hex_to_int(data:value :: STRING),4) = 9023
AND to_address IN ('0xe4edb277e41dc89ab076a1f049f4a3efa700bce8','0x80c67432656d59144ceff962e8faf8926599bcf8')
AND block_timestamp::date > '2023-07-01'
GROUP BY day, from_chain
),
arbitrum AS(
select
date_trunc(day, block_timestamp) AS day,
count(DISTINCT from_address) AS wallet_count,
count(tx_hash) AS transacton_count,
sum(eth_value) AS eth_value,
'Arbitrum' AS from_chain
Run a query to Download Data