Afonso_DiazTop Projects in Terms Of Number of contracts
    Updated 2024-10-27
    with

    transactions as (
    select
    contract_address,
    tx_hash,
    block_timestamp,
    tx_fee,
    from_address as user
    from
    blast.core.fact_event_logs
    join
    blast.core.fact_transactions using (tx_hash, block_timestamp)
    where
    status = 'SUCCESS'
    )

    select
    project_name,
    count(distinct contract_address) as contracts,
    count(distinct tx_hash) as transactions,
    count(distinct user) as users,
    sum(tx_fee) as total_fee
    from
    transactions
    join
    blast.core.dim_labels
    on address = contract_address
    where
    block_timestamp::date between '{{ start_date }}' and '{{ end_date }}'
    and label_type != 'token'
    and label_subtype != 'token_contract'
    group by 1
    order by contracts desc
    limit 10
    QueryRunArchived: QueryRun has been archived