Sbhn_NPEthereum daily stats divided by MERGE
Updated 2022-10-02Copy Reference Fork
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
›
⌄
--credit : alik110
select 'Before Merge' as timespan,
block_timestamp::date as date,
count (distinct tx_hash) as TX_Count,
tx_count/86400 as TPS,
count (distinct from_address) as Users_Count,
sum (tx_fee) as Total_Fee,
avg (tx_fee) as Average_Fee,
sum (gas_used) as Gas_Used
from ethereum.core.fact_transactions
where block_timestamp >= '2022-09-01' and block_timestamp < '2022-09-15'
and block_timestamp::date != CURRENT_DATE
and status = 'SUCCESS'
group by 1,2
union all
select 'Post Merge' as timespan,
block_timestamp::date as date,
count (distinct tx_hash) as TX_Count,
tx_count/86400 as TPS,
count (distinct from_address) as Users_Count,
sum (tx_fee) as Total_Fee,
avg (tx_fee) as Average_Fee,
sum (gas_used) as Gas_Used
from ethereum.core.fact_transactions
where block_timestamp >= '2022-09-15'
and block_timestamp::date != CURRENT_DATE
and status = 'SUCCESS'
group by 1,2
Run a query to Download Data