MrftiSwell chain succeed vs failed tx copy
    Updated 3 hours ago
    -- forked from berachain succeed vs failed tx @ https://flipsidecrypto.xyz/studio/queries/d726c6ee-57c4-4392-84dd-5e6d86bd74a7

    with tbl1 AS
    (
    SELECT date_trunc (day, block_timestamp) as date,
    count (DISTINCT tx_hash) as "Daily succeed transactions"
    FROM swell.core.fact_transactions
    where TX_SUCCEEDED = 'TRUE'
    group by 1
    ORDER by 1
    ),
    tbl2 AS
    (
    SELECT date_trunc (day, block_timestamp) as date2,
    count (DISTINCT tx_hash) as "Daily failed transactions"
    FROM swell.core.fact_transactions
    where TX_SUCCEEDED ='FALSE'
    group by 1
    ORDER by 1
    )

    SELECT date,
    "Daily succeed transactions",
    "Daily failed transactions"
    from tbl1 full join tbl2 on date=date2
    GROUP by 1,2,3
    order by 1



    Last run: about 3 hours agoAuto-refreshes every 12 hours
    DATE
    Daily succeed transactions
    Daily failed transactions
    1
    2024-11-27 00:00:00.00027648
    2
    2024-11-28 00:00:00.00043519
    3
    2024-11-29 00:00:00.00043204
    4
    2024-11-30 00:00:00.00043200
    5
    2024-12-01 00:00:00.00043201
    6
    2024-12-02 00:00:00.00043344
    7
    2024-12-03 00:00:00.0004476635
    8
    2024-12-04 00:00:00.000452953
    9
    2024-12-05 00:00:00.00045582
    10
    2024-12-06 00:00:00.000453791
    11
    2024-12-07 00:00:00.000448962
    12
    2024-12-08 00:00:00.00044927
    13
    2024-12-09 00:00:00.000454081
    14
    2024-12-10 00:00:00.000457024
    15
    2024-12-11 00:00:00.0004555141
    16
    2024-12-12 00:00:00.000452964
    17
    2024-12-13 00:00:00.000453553
    18
    2024-12-14 00:00:00.000450718
    19
    2024-12-15 00:00:00.000448975
    20
    2024-12-16 00:00:00.000454698
    ...
    110
    4KB
    14s