adriaparcerisasavg tx fee flow vs l2
    Updated 2025-04-28
    WITH evm_data AS (
    SELECT
    DATE_TRUNC('day', BLOCK_TIMESTAMP) AS date,
    COUNT(TX_HASH) AS total_transactions,
    SUM(CASE WHEN tx_succeeded = 'TRUE' THEN 1 ELSE 0 END) AS successful_transactions,
    successful_transactions/total_transactions as success_rate,
    SUM(tx_fee) AS fees,
    AVG(tx_fee) AS avg_tx_fee,
    COUNT(DISTINCT FROM_ADDRESS) AS unique_users,
    avg(DATEDIFF(MINUTE, INSERTED_TIMESTAMP, BLOCK_TIMESTAMP)) AS latency_MINUTEs
    FROM
    flow.core_evm.fact_transactions
    WHERE
    BLOCK_TIMESTAMP >= '2025-01-01' and block_timestamp<current_date
    GROUP BY
    1
    ),
    non_evm_data AS (
    SELECT
    DATE_TRUNC('day', x.BLOCK_TIMESTAMP) AS date,
    COUNT(distinct x.TX_ID) AS total_transactions,
    SUM(CASE WHEN x.TX_SUCCEEDED = 'TRUE' THEN 1 ELSE 0 END) AS successful_transactions,
    successful_transactions/total_transactions as success_rate,
    SUM(y.event_data:amount) AS fees,
    AVG(y.event_data:amount) AS avg_tx_fee,
    COUNT(DISTINCT x.PAYER) AS unique_users,
    avg(DATEDIFF(MINUTE, x.INSERTED_TIMESTAMP, x.BLOCK_TIMESTAMP)) AS latency_MINUTEs
    FROM
    flow.core.fact_transactions x
    join flow.core.fact_events y on x.tx_id=y.tx_id
    WHERE
    x.BLOCK_TIMESTAMP >= '2025-01-01' and x.block_timestamp<current_date and
    event_contract='A.f919ee77447b7497.FlowFees'
    and event_Type='FeesDeducted' and x.block_timestamp<current_date
    GROUP BY
    1
    Last run: 14 days ago
    DATE
    CHAIN
    AVG_TX_FEE_NATIVE
    AVG_TX_FEE_USD
    1
    2025-04-27 00:00:00.000Arbitrum0.0000026983596620.004876266458
    2
    2025-04-27 00:00:00.000Base0.0000059283630130.01071327819
    3
    2025-04-27 00:00:00.000Flow0.000021377112570.0000085746431
    4
    2025-04-27 00:00:00.000Mantle0.0065494707170.004793668686
    5
    2025-04-27 00:00:00.000Optimism0.0000028908534680.005224126347
    6
    2025-04-26 00:00:00.000Arbitrum0.0000025107877510.00452270813
    7
    2025-04-26 00:00:00.000Base0.0000071804812150.01293427561
    8
    2025-04-26 00:00:00.000Flow0.000018862520440.000007719487275
    9
    2025-04-26 00:00:00.000Mantle0.0063559187940.004728870584
    10
    2025-04-26 00:00:00.000Optimism0.000003609064770.006501045965
    11
    2025-04-25 00:00:00.000Arbitrum0.0000052813145680.009403481814
    12
    2025-04-25 00:00:00.000Base0.00001012257170.01802343294
    13
    2025-04-25 00:00:00.000Flow0.000026864103850.00001087057082
    14
    2025-04-25 00:00:00.000Mantle0.0071985735530.005337870964
    15
    2025-04-25 00:00:00.000Optimism0.0000053477399150.009521753416
    16
    2025-04-24 00:00:00.000Arbitrum0.0000033127332930.005853450655
    17
    2025-04-24 00:00:00.000Base0.0000092468725340.01633880766
    18
    2025-04-24 00:00:00.000Flow0.000039265352550.0000153754973
    19
    2025-04-24 00:00:00.000Mantle0.0088986037050.006235365444
    20
    2025-04-24 00:00:00.000Optimism0.000003478609710.006146546819
    ...
    585
    39KB
    195s