adriaparcerisasoptimistic or pessimistic 2
Updated 2022-10-19
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
opt as (
select
trunc(block_timestamp,'day') as date,
--status,
count(distinct from_address) as daily_users,
sum(daily_users) over (order by date) as cum_users,
count(distinct tx_hash) as daily_transactions,
sum(daily_transactions) over (order by date) as cum_transactions,
sum(tx_fee) as daily_fees,
sum(daily_fees) over (order by date) as cum_fees,
avg(tx_fee) as avg_fee_per_tx
from optimism.core.fact_transactions where block_timestamp>=CURRENT_DATE-INTERVAL '3 MONTHS'
group by 1
order by 1 asc
),
avax as (
select
trunc(block_timestamp,'day') as date,
status,
count(distinct from_address) as daily_users,
sum(daily_users) over (order by date) as cum_users,
count(distinct tx_hash) as daily_transactions,
sum(daily_transactions) over (order by date) as cum_transactions,
sum(tx_fee) as daily_fees,
sum(daily_fees) over (order by date) as cum_fees,
avg(tx_fee) as avg_fee_per_tx
from avalanche.core.fact_transactions where date>=CURRENT_DATE-INTERVAL '3 MONTHS'
group by 1,2
order by 1 asc
),
arb as (
select
trunc(block_timestamp,'day') as date,
--status,
count(distinct from_address) as daily_users,
Run a query to Download Data