cybergenlab[Network Overview]  Daily Metrics Overview
    Updated 9 days ago
    -- Base key usage metrics overview

    --Get Base block base fee
    with block_base_fee as (
    select
    date_trunc('day', block_timestamp) as time,
    avg(get(block_header_json, 'baseFeePerGas')/pow(10, 9)) as base_fee
    from base.core.fact_blocks
    group by 1
    )


    --Get type and status of transactions
    , transaction_details as (
    select
    time,
    sum(successes) / (sum(successes) + sum(failures)) as success_rate
    from(
    select
    date_trunc('day', block_timestamp) as time,
    case when status = 'SUCCESS' then 1 else 0 end as successes,
    case when status = 'FAIL' then 1 else 0 end as failures
    from base.core.fact_transactions
    )
    group by 1
    )



    --Get Base usage metrics
    select
    date_trunc('day', block_timestamp) as time,
    block_base_fee.base_fee,
    success_rate * 100,
    avg(value) as average_tx_value,
    count(distinct tx_hash) as transactions,
    Last run: 8 days ago
    TIME
    BASE_FEE
    SUCCESS_RATE * 100
    AVERAGE_TX_VALUE
    TRANSACTIONS
    TPS
    FEE_VOLUME
    AVG_TX_FEE
    AVG_GAS_PRICE
    1
    2025-03-28 00:00:00.0000.00158688465794.14240.02645669552710323382.21334567.0530761340.0000094397967990.06045694689
    2
    2025-03-27 00:00:00.0000.00181114162595.43270.03065597614700073581.02702546.6724901880.0000066667985840.04594579191
    3
    2025-03-26 00:00:00.0000.00170308627794.83760.02521313652684852179.26528953.5984016970.0000078262739790.0487263679
    4
    2025-03-25 00:00:00.0000.002507821194.89290.02994192629694693080.40428262.8693879180.0000090499527010.05907892681
    5
    2025-03-24 00:00:00.0000.00218232973794.35770.03002180503724125983.81086869.306903460.0000095711123520.0600365451
    6
    2025-03-23 00:00:00.0000.00201358782695.83090.02419703282729307784.41061338.022763410.0000052135420220.03066587991
    7
    2025-03-22 00:00:00.0000.00223060614896.46790.01842072085765401888.58817128.0494175460.0000036646657410.02457422199
    8
    2025-03-21 00:00:00.0000.002925521994.48560.01964054784842071097.46192144.9452846110.0000053374697160.03527588784
    9
    2025-03-20 00:00:00.0000.00254310002894.01850.0230713301826510295.66090362.1729900750.0000075223500050.04681498221
    10
    2025-03-19 00:00:00.0000.00529671814892.45210.03183042686778512290.10557995.7462945120.00001229862480.07721772427
    11
    2025-03-18 00:00:00.0000.0037226555891.73030.02975544798747074886.46699175.228763530.000010069776620.06229892592
    12
    2025-03-17 00:00:00.0000.00219590978294.70320.03248429502694018580.32621576.5418319180.000011028788410.06577260365
    13
    2025-03-16 00:00:00.0000.00221271398894.51820.02555117756759023687.84995455.4557658210.0000073061978340.04904197028
    14
    2025-03-15 00:00:00.0000.00257176785295.48440.02638573001706247981.74165555.2977973870.0000078297999030.05112610341
    15
    2025-03-14 00:00:00.0000.00424101344794.96610.02943484614757933487.72377387.2357623530.000011509687050.07098180415
    16
    2025-03-13 00:00:00.0000.00399504575694.61240.03445104599770124889.13481589.2100159190.000011583838870.07032212767
    17
    2025-03-12 00:00:00.0000.00464475341593.37210.03297067125763578288.377106126.0072286620.000016502203530.1074997435
    18
    2025-03-11 00:00:00.0000.00412013184691.12240.03487005274751215286.946204143.7194142760.000019131590290.122140986
    19
    2025-03-10 00:00:00.0000.00255944880691.06160.03805224276773681789.546493166.4127771080.000021509204250.125712278
    20
    2025-03-09 00:00:00.0000.00259645124894.69720.02500415313821943395.13232673.0102624280.0000088826397670.05704440151
    ...
    365
    45KB
    419s