GYZQStarknet - Tx
    Updated 2024-01-28
    -- forked from Hessish / stark -tx level @ https://flipsidecrypto.xyz/Hessish/q/0tEi_dQSjHwV/stark-tx-level
    with x as (
    SELECT
    DISTINCT contract,
    count(DISTINCT tx_hash) as txs
    from
    external.tokenflow_starknet.decoded_transactions
    where
    CHAIN_ID = 'mainnet'
    group by
    1
    )
    SELECT
    count(DISTINCT contract) as wallets,
    case
    when txs < 11 then '1~10Tx'
    when txs > 10 and txs < 31 then '11~30Tx'
    when txs > 30 and txs < 61 then '31~60Tx'
    when txs > 60 and txs < 101 then '61~100Tx'
    when txs > 100 then '>100Tx' end as "Activity rate"
    from
    x
    GROUP by
    2
    Last run: over 1 year ago
    WALLETS
    Activity rate
    1
    95209111~30Tx
    2
    77571931~60Tx
    3
    92940>100Tx
    4
    23317161~100Tx
    5
    17537291~10Tx
    5
    95B
    20s