adriaparcerisasmultichain 2 july
Updated 2023-07-12
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
›
⌄
with
arbitrum_inflows as (
select
trunc(block_timestamp,'day') as date,x.symbol,
count(distinct tx_hash) as transactions,
count(distinct origin_from_address) as active_users,
sum(amount_usd) as volume, avg(amount_usd) as avg_volume
from arbitrum.core.ez_token_transfers x
join arbitrum.core.dim_labels z on x.to_address=z.address
where amount_usd<1e9
and block_timestamp >=CURRENT_DATE-INTERVAL '1 WEEK'
and project_name ilike '%multichain%'
group by 1,2
UNION
select
trunc(block_timestamp,'day') as date,'ETH' as symbol,
count(distinct tx_hash) as transactions,
count(distinct origin_from_address) as active_users,
sum(amount_usd) as volume, avg(amount_usd) as avg_volume
from arbitrum.core.ez_eth_transfers x
join arbitrum.core.dim_labels z on x.eth_to_address=z.address
where amount_usd<1e9
and block_timestamp >=CURRENT_DATE-INTERVAL '1 WEEK'
and project_name ilike '%multichain%'
group by 1,2
),
arbitrum_outflows as (
select
trunc(block_timestamp,'day') as date,x.symbol,
count(distinct tx_hash) as transactions,
count(distinct to_address) as active_users,
Run a query to Download Data