rezarwzTransaction Status
Updated 2024-12-09
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 failed_tx as (
SELECT
date_Trunc('hour', block_timestamp) as date,
sum(
case
when status != 'SUCCESS' then 1
end
) / sum(
case
when status != 'SUCCESS'
or status = 'SUCCESS' then 1
end
) * 100 / 2 as "% of Failed Transactions"
FROM
blast.core.fact_transactions
where
block_timestamp >= '2024-06-26 13:48:11'
group by
1
)
SELECT
date_Trunc('hour', block_timestamp) as date,
CASE
when status = 'SUCCESS' then 'Succeeded'
else 'Failed'
end as tx_status,
count(tx_hash) as "# of TXs",
"% of Failed Transactions"
FROM
blast.core.fact_transactions fa
inner join failed_tx on date_Trunc('hour', fa.block_timestamp) = failed_tx.date
where
block_timestamp >= '2024-06-26 13:48:11'
group by
1,
2,
QueryRunArchived: QueryRun has been archived