Updated 2025-02-20
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    from_address as creator,
    tx_fee
    from
    monad.testnet.fact_transactions
    where
    to_address is null
    and origin_function_signature = '0x60806040'
    and input_data is not null
    and tx_succeeded
    )

    select
    count(distinct tx_hash) as contracts_created,
    count(distinct creator) as creators,
    sum(tx_fee) as fee_volume,
    avg(tx_fee) as average_fee_amount,
    contracts_created / count(distinct block_timestamp::date) as daily_average_contracts_created,
    creators / count(distinct block_timestamp::date) as daily_average_contracts_creators
    from
    main
    QueryRunArchived: QueryRun has been archived