Afonso_DiazTop Fee Consumer Contracts
    Updated 2025-02-02
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    contract_address,
    from_address as user,
    tx_fee
    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