hessAverage Daily Success Rate
    Updated 2024-02-14
    with zk_import as ( select * from (
    SELECT
    livequery.live.udf_api (
    'https://api.dune.com/api/v1/query/3145198/results?api_key=nPlMJ4JjTsMZcIo0C6kGSt5rpbcoXujU') as resp)
    ,
    table(FLATTEN(parse_json(resp:data:"result":"rows"))))
    ,
    chains as ( select TO_TIMESTAMP(value:"date") as date,
    'Zksync' as chain,
    value:"status"::string as status,
    value:"total_tx" as total_tx,
    total_tx/86400 as tps
    from zk_import
    where date >= '2023-11-01'
    UNION
    select date(block_timestamp) as date,
    'Sei' as chain,
    case when TX_SUCCEEDED = 'true' then 'SUCCESS' else 'FAIL' end as status,
    count(DISTINCT tx_id) as total_tx,
    total_tx/86400 as tps
    from sei.core.fact_transactions
    where block_timestamp::date >= '2023-11-01'
    group by 1,2,3
    UNION
    select date(block_timestamp) as date,
    'Arbitrum' as chain,
    status,
    count(DISTINCT tx_hash) as total_tx,
    total_tx/86400 as tps
    from arbitrum.core.fact_transactions
    where block_timestamp::date >= '2023-11-01'
    group by 1,2,3
    UNION
    select date(block_timestamp) as date,
    'Optimism' as chain,
    status,
    Last run: about 1 year ago
    DATE
    CHAIN
    SUCCESS_RATE
    1
    2023-11-01 00:00:00.000BSC94.589015113
    2
    2023-11-01 00:00:00.000Osmosis67.908114216
    3
    2023-11-01 00:00:00.000Near96.161324207
    4
    2023-11-01 00:00:00.000Arbitrum94.621673561
    5
    2023-11-01 00:00:00.000Atom97.47158047
    6
    2023-11-01 00:00:00.000Sei99.521021505
    7
    2023-11-01 00:00:00.000Zksync98.070460739
    8
    2023-11-01 00:00:00.000Base95.820424482
    9
    2023-11-01 00:00:00.000Optimism96.159369017
    10
    2023-11-01 00:00:00.000Ethereum97.9769925
    11
    2023-11-01 00:00:00.000Avalanche93.439766729
    12
    2023-11-01 00:00:00.000Flow92.531657888
    13
    2023-11-01 00:00:00.000Solana49.789565905
    14
    2023-11-01 00:00:00.000Polygon93.59724207
    15
    2023-11-02 00:00:00.000Optimism96.692576087
    16
    2023-11-02 00:00:00.000Solana50.408358212
    17
    2023-11-02 00:00:00.000Avalanche94.134398134
    18
    2023-11-02 00:00:00.000BSC93.912531908
    19
    2023-11-02 00:00:00.000Ethereum98.020932882
    20
    2023-11-02 00:00:00.000Atom95.277090078
    ...
    420
    20KB
    1167s