Afonso_DiazTransaction Size Distribution
    Updated 2025-02-21
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as user,
    utils.udf_hex_to_int(data)::bigint / 1e18 as amount,
    iff(topics[1] = '0x0000000000000000000000000000000000000000000000000000000000000000', 'Stake', 'Unstake') as event_name
    from
    monad.testnet.fact_event_logs
    where
    tx_succeeded
    and origin_to_address = '0xb2f82d0f38dc453d596ad40a37799446cc89274a'
    and topics[0] = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
    and contract_address = lower('0xb2f82D0f38dc453D596Ad40A37799446Cc89274A')
    and block_timestamp >= '2025-02-19'
    ),

    user_counts as (
    select
    user,
    count(tx_hash) as tx_count
    from main
    group by user
    )
    select
    case
    when tx_count = 1 then '1'
    when tx_count between 2 and 5 then '2-5'
    when tx_count between 6 and 10 then '6-10'
    else '10+'
    end as tx_bucket,
    count(*) as user_count
    from user_counts
    group by tx_bucket
    Last run: 26 days ago
    TX_BUCKET
    USER_COUNT
    1
    134606
    2
    10+140
    3
    2-515572
    4
    6-10655
    4
    52B
    2s