adriaparcerisasavg tx fee flow vs l2
    Updated 5 days ago
    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: 5 days ago
    DATE
    CHAIN
    AVG_TX_FEE_NATIVE
    AVG_TX_FEE_USD
    1
    2025-05-18 00:00:00.000Arbitrum0.0000058589144760.01461476677
    2
    2025-05-18 00:00:00.000Base0.000010438760190.026038961
    3
    2025-05-18 00:00:00.000Flow0.000026931666990.00001104089274
    4
    2025-05-18 00:00:00.000Mantle0.011068364970.008121559451
    5
    2025-05-18 00:00:00.000Optimism0.0000030125474360.007514647696
    6
    2025-05-17 00:00:00.000Arbitrum0.0000022890793360.005696486474
    7
    2025-05-17 00:00:00.000Base0.0000058167080310.01447516392
    8
    2025-05-17 00:00:00.000Flow0.000031709309980.0000129399339
    9
    2025-05-17 00:00:00.000Mantle0.0094936226010.006945728518
    10
    2025-05-17 00:00:00.000Optimism0.0000020223246720.005032654378
    11
    2025-05-16 00:00:00.000Arbitrum0.0000042718681970.01103837749
    12
    2025-05-16 00:00:00.000Base0.0000061655393170.01593156606
    13
    2025-05-16 00:00:00.000Flow0.000029965857060.0000128615681
    14
    2025-05-16 00:00:00.000Mantle0.010159891880.007630713793
    15
    2025-05-16 00:00:00.000Optimism0.0000025086580140.006482296004
    16
    2025-05-15 00:00:00.000Arbitrum0.000004309365720.01104491152
    17
    2025-05-15 00:00:00.000Base0.0000083306350390.02135143149
    18
    2025-05-15 00:00:00.000Flow0.000032076086890.00001386928699
    19
    2025-05-15 00:00:00.000Mantle0.010712604760.008183607397
    20
    2025-05-15 00:00:00.000Optimism0.0000080174826030.02054882127
    ...
    690
    46KB
    116s