zackmendelTPS Across Chains copy
    Updated 2024-02-28
    WITH tps AS (
    SELECT
    'Aptos' AS chain,
    block_timestamp::date AS timespan,
    COUNT(DISTINCT tx_hash) / 24 / 60 / 60 AS tps
    FROM aptos.core.fact_transactions
    WHERE block_timestamp::date >= current_date - 30
    GROUP BY timespan

    UNION ALL

    SELECT
    'Arbitrum' AS chain,
    block_timestamp::date AS timespan,
    COUNT(DISTINCT tx_hash) / 24 / 60 / 60 AS tps
    FROM arbitrum.core.fact_transactions
    WHERE block_timestamp::date >= current_date - 30
    GROUP BY timespan

    UNION ALL

    SELECT
    'Axelar' AS chain,
    block_timestamp::date AS timespan,
    COUNT(DISTINCT tx_id) / 24 / 60 / 60 AS tps
    FROM axelar.core.fact_transactions
    WHERE block_timestamp::date >= current_date - 30
    GROUP BY timespan

    UNION ALL

    SELECT
    'BSC' AS chain,
    block_timestamp::date AS timespan,
    COUNT(DISTINCT tx_hash) / 24 / 60 / 60 AS tps
    FROM bsc.core.fact_transactions
    QueryRunArchived: QueryRun has been archived