rezarwzTransaction Status
    Updated 2024-12-09
    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