elsinaChain Comparision (AVG Daly success rate)
Updated 2024-12-02
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 transaction as (
SELECT
date_trunc('day', block_timestamp) as date,
'Aptos' as chain,
count(distinct tx_hash) as tx_count,
(count(distinct CASE WHEN success = 'TRUE' THEN tx_hash END)::float / count(distinct tx_hash)) * 100 as success_rate,
100 - success_rate as failed_rate
FROM aptos.core.fact_transactions
WHERE block_timestamp::date between '2024-11-01' and '2024-11-30'
group by 1
union all
SELECT
date_trunc('day', block_timestamp) as date,
'Arbitrum' as chain,
count(distinct tx_hash) as tx_count,
(count(distinct CASE WHEN status = 'SUCCESS' THEN tx_hash END)::float / count(distinct tx_hash)) * 100 as success_rate,
100 - success_rate as failed_rate
FROM arbitrum.core.fact_transactions
WHERE block_timestamp::date between '2024-11-01' and '2024-11-30'
group by 1
union all
SELECT
date_trunc('day', block_timestamp) as date,
'Aurora' as chain,
count(distinct tx_hash) as tx_count,
(count(distinct CASE WHEN status = 'SUCCESS' THEN tx_hash END)::float / count(distinct tx_hash)) * 100 as success_rate,
100 - success_rate as failed_rate
FROM aurora.core.fact_transactions
WHERE block_timestamp::date between '2024-11-01' and '2024-11-30'
group by 1
union all
QueryRunArchived: QueryRun has been archived