2844Untitled Query
Updated 2022-04-03
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
›
⌄
with swaps as (
select
last_day(block_timestamp,'week') as weekend,
platform,
count(distinct from_address) as users
from (
select
block_timestamp,
from_address,
platform
from ethereum.dex_swaps
where platform != 'curve'
)
group by 1,2
),
gas as (
select
last_day(block_timestamp,'week') as weekend,
median(gwei) as median_gwei
from (
select
block_timestamp,
gas_price/pow(10,9) as gwei
from ethereum.transactions
)
group by 1
),
eth_price as (
select
last_day(hour,'week') as weekend,
median(price) as eth_price
from (
select
hour,
price
Run a query to Download Data