adriaparcerisasAvalanche TPS comparison
    Updated 2022-06-27
    -- Show the average TPS per second by hour.
    -- What's the average number of transactions per block? What's the max number of transactions we've seen in a block and the minimum?-
    -- Show the average time between blocks over time
    -- Show transaction gas price over time.
    -- Note any other interesting findings about the number of transactions, blocks, or gas for the Avalanche blockchain!
    WITH
    avx as (
    select
    trunc(block_timestamp,'day') as date,
    count(distinct tx_hash) as txs,
    txs/84600 as tps
    from avalanche.core.fact_transactions
    where block_timestamp>='2022-06-20' and status='SUCCESS'
    group by 1
    order by 1 asc
    ),
    eth as (
    select
    trunc(block_timestamp,'day') as date,
    count(distinct tx_hash) as txs,
    txs/84600 as tps
    from ethereum.core.fact_transactions where block_timestamp >='2022-06-20' and status='SUCCESS'
    group by 1
    order by 1 asc
    ),
    sol as (
    Select
    trunc(block_timestamp,'day') as date,
    count(distinct tx_id) as txs,
    txs/84600 as tps
    From solana.core.fact_transactions
    Where block_timestamp >='2022-06-20' and succeeded='TRUE'
    Group by 1
    order by 1 ASC
    )
    select 'Avalanche' as chain,* from avx
    Run a query to Download Data