SalehFlow vs L1s - Transaction success rates
    Updated 2022-05-31
    with flow as (with tot as (select date_trunc('day' , block_timestamp::date) as "Date", count(*) as "Flow All Transactions"
    from flow.core.fact_transactions
    where BLOCK_TIMESTAMP >= '2022-05-09'
    group by 1
    order by 1),
    succ as (select date_trunc('day' , block_timestamp::date) as "Date", count(*) as "Flow Successful Transactions"
    from flow.core.fact_transactions
    where BLOCK_TIMESTAMP >= '2022-05-09'
    and TX_SUCCEEDED = true
    group by 1
    order by 1)

    select tot."Date", tot."Flow All Transactions", succ."Flow Successful Transactions",
    (succ."Flow Successful Transactions" / tot."Flow All Transactions" * 100) as "Flow Success Rate"
    from tot
    join succ on succ."Date"=tot."Date"
    order by 1),
    eth as (with tot as (select date_trunc('day' , block_timestamp::date) as "Date", count(*) as "Ethereum All Transactions"
    from flipside_prod_db.ethereum_core.fact_transactions
    where BLOCK_TIMESTAMP >= '2022-05-09'
    group by 1
    order by 1),
    succ as (select date_trunc('day' , block_timestamp::date) as "Date", count(*) as "Ethereum Successful Transactions"
    from flipside_prod_db.ethereum_core.fact_transactions
    where BLOCK_TIMESTAMP >= '2022-05-09'
    and STATUS = 'SUCCESS'
    group by 1
    order by 1)

    select tot."Date", tot."Ethereum All Transactions", succ."Ethereum Successful Transactions",
    (succ."Ethereum Successful Transactions" / tot."Ethereum All Transactions" * 100) as "Ethereum Success Rate"
    from tot
    join succ on succ."Date"=tot."Date"
    order by 1),
    sol as (with tot as (select date_trunc('day' , block_timestamp::date) as "Date", count(*) as "Solana All Transactions"
    from flipside_prod_db.solana.fact_transactions
    Run a query to Download Data