Mrftiusers tx count
    Updated 2 days ago
    -- forked from similar-cyan copy @ https://flipsidecrypto.xyz/studio/queries/23dc79b6-2bbb-4727-9bd8-c0093ce8e9e6

    with tbl AS
    (
    SELECT
    from_address as "Address",
    count (DISTINCT tx_hash) as "Total tx"
    from monad.testnet.fact_transactions
    GROUP by 1
    order by 2 DESC
    )
    SELECT case when "Total tx" = 1 then 'tier1: only 1 tx'
    when "Total tx" > 1 and "Total tx" <= 10 then 'tier2: 2-10 txs'
    when "Total tx" > 10 and "Total tx" <= 100 then 'tier3: 10-100 txs'
    when "Total tx" > 100 and "Total tx" <= 1000 then 'tier4: 100-1000 txs'
    when "Total tx" > 1000 then 'tier5: more then 1000 txs'end as "Tier",
    count (DISTINCT "Address") AS "Total Addresses"
    from tbl
    group by 1
    order by 1 asc



    Last run: 1 day ago
    5
    155B
    65s