kiacryptodaily success rate - layer 2
    Updated 2023-03-10
    select
    date_trunc('day', block_timestamp) as date,
    count(distinct tx_hash) as tx_count,
    (sum(iff(status = 'SUCCESS', 1, 0)) / tx_count) * 100 as success_rate,
    'Arbitrum' as blockchain
    from arbitrum.core.fact_transactions
    where
    block_timestamp::date >= '2023-01-01'
    group by 1
    union all
    select
    date_trunc('day', block_timestamp) as date,
    count(distinct tx_hash) as tx_count,
    (sum(iff(status = 'SUCCESS', 1, 0)) / tx_count) * 100 as success_rate,
    'Optimism' as blockchain
    from optimism.core.fact_transactions
    where
    block_timestamp::date >= '2023-01-01'
    group by 1
    union all
    select
    date_trunc('day', block_timestamp) as date,
    count(distinct tx_hash) as tx_count,
    (sum(iff(status = 'SUCCESS', 1, 0)) / tx_count) * 100 as success_rate,
    'Polygon' as blockchain
    from polygon.core.fact_transactions
    where
    block_timestamp::date >= '2023-01-01'
    group by 1
    Run a query to Download Data