HosseinUntitled Query
Updated 2022-12-12
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
›
⌄
select
block_timestamp::date as day,
'Ethereum' as network,
count (distinct tx_hash) as tx_num,
tx_num / 1440 as tpm,
tx_num / 86400 as tps,
sum(tx_num) over (order by day asc) as comulative_tx_num
from ethereum.core.fact_transactions
where block_timestamp >= current_date - interval '6 months'
group by day, network
union
select
block_timestamp::date as day,
'FLOW' as network,
count (distinct tx_id) as tx_num,
count(iff(status = 'SUCCESS', 1, null)) as success_tx_num,
count(iff(status != 'SUCCESS', 1, null)) as failed_tx_num,
tx_num / 1440 as tpm,
tx_num / 86400 as tps,
sum(tx_num) over (order by day asc) as comulative_tx_num
from flow.core.fact_transactions
where block_timestamp >= current_date - interval '6 months'
group by day, network
union
select
block_timestamp::date as day,
'Avalanche' as network,
count (distinct tx_hash) as tx_num,
count(iff(status = 'SUCCESS', 1, null)) as success_tx_num,
count(iff(status != 'SUCCESS', 1, null)) as failed_tx_num,
tx_num / 1440 as tpm,
Run a query to Download Data