adriaparcerisasflow evm vs non-evm activity
    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 >= DATEADD(day, -30, CURRENT_DATE) 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 >= DATEADD(day, -30, 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
    EVM_TRANSACTIONS
    NON_EVM_TRANSACTIONS
    EVM_SUCCESSFUL_TRANSACTIONS
    NON_EVM_SUCCESSFUL_TRANSACTIONS
    EVM_SUCCESS_RATE
    NON_EVM_SUCCESS_RATE
    EVM_TOTAL_FEES
    NON_EVM_TOTAL_FEES
    EVM_AVG_TX_FEE
    NON_EVM_AVG_TX_FEE
    EVM_UNIQUE_USERS
    NON_EVM_UNIQUE_USERS
    EVM_LATENCY
    NON_EVM_LATENCY
    1
    2025-03-30 00:00:00.00042736424240.9926990.8986693650.00002102839211522-56.154437
    2
    2025-03-29 00:00:00.0001007391001240.9938951.9813904540.000019668553934047-55.553996
    3
    2025-03-28 00:00:00.0009973711906799205866110.9946660.7274142.6532805283.363463410.000026602770570.000028248493793496364-55.592067-52.03886
    4
    2025-03-27 00:00:00.00092602305805921762198510.99540.7189251.5363171178.322656950.000016590539270.000027215568582811801-55.204736-386.673707
    5
    2025-03-26 00:00:00.00094076240172937441788450.9964710.7446541.6025180487.099453070.000017034291940.000029559869882428368-55.236128-1137.481459
    6
    2025-03-25 00:00:00.00091459345579913422603560.9987210.7533911.131014529.453977210.000012366355640.000027356920443308275-55.257908-43.135807
    7
    2025-03-24 00:00:00.00089375295225892292165090.9983660.7333691.1230673967.845687830.000012565789040.000026575282682075286-55.103038-44.290687
    8
    2025-03-23 00:00:00.00075373306946752752188090.99870.7128581.2715293887.658031430.00001686982590.000024949116231230221-55.982872-42.537528
    9
    2025-03-22 00:00:00.00081518297330812122099180.9962460.706012.2071359948.036526340.000027075443390.000027028979051153256-54.198214-46.090233
    10
    2025-03-21 00:00:00.00084643304715838082225260.9901350.7302762.0422962339.23796820.000024128353590.000030316749091892288-56.523989-46.150777
    11
    2025-03-20 00:00:00.00047103245604465582034870.988430.8285170.9946967517.412577590.000021117481920.00003018101331195320-54.693756-46.965029
    12
    2025-03-19 00:00:00.00054656257727543992350590.9952980.9120460.89948170598.230685320.00001645714480.000031935673481044857-54.664886-48.165093
    13
    2025-03-18 00:00:00.00030852218404306201824100.992480.8351950.89685647328.117104970.000029069638050.00003716555086541364-56.557695-47.885515
    14
    2025-03-17 00:00:00.00020530181997204631413920.9967360.7768920.43293706834.115475840.000021088020860.00002261287736260272-56.245202-43.17914
    15
    2025-03-16 00:00:00.00019333196673192881454670.9976720.7396390.44205895093.908811160.000022865512380.00001987467095271387-57.148451-42.080769
    16
    2025-03-15 00:00:00.00018381472960183334409860.9973890.9323960.53641541556.084764460.000029183146480.0000128652834522068950-54.896796-43.515805
    17
    2025-03-14 00:00:00.00025580478838254214418030.9937840.9226571.6057605376.67443030.000062774063230.0000139388066530566730-54.628499-43.646603
    18
    2025-03-13 00:00:00.00028661489956284184400220.9915220.8980852.193491847.153271810.000076532285680.000014599824919366632-55.25055-45.70441
    19
    2025-03-12 00:00:00.00034204516984339894613930.9937140.8924711.6653116048.221914520.000048687627290.0000159036150417767439-53.496813-46.743292
    20
    2025-03-11 00:00:00.00038925515960381644766360.980450.9237851.9078915788.094143360.000049014555620.0000156875404319967168-59.641207-47.767075
    30
    5KB
    107s