Afonso_DiazTop Fee Consumer Contracts
    Updated 2025-01-25
    with

    main as (
    select
    origin_to_address as contract_address,
    tx_hash,
    block_timestamp,
    tx_fee,
    origin_from_address as user
    from
    sei.core_evm.fact_event_logs
    join
    sei.core_evm.fact_transactions using (tx_hash, block_timestamp)
    where
    status = 'SUCCESS'
    )

    select
    contract_address,
    count(distinct tx_hash) as transactions,
    count(distinct user) as users,
    sum(tx_fee) as total_fee
    from
    main
    group by 1
    order by total_fee desc
    limit 10
    QueryRunArchived: QueryRun has been archived