JeffersTop MON senders
    Updated 2025-03-06
    WITH total_mon AS (
    SELECT SUM(t.value) AS grand_total_mon
    FROM monad.testnet.fact_transactions t
    LEFT JOIN monad.testnet.dim_contracts c
    ON t.to_address = c.address -- Check if receiver is a smart contract
    WHERE value > 0
    AND t.block_timestamp >= '2025-02-19 15:00'
    AND t.tx_succeeded = TRUE
    AND c.address IS NULL -- Only keep EOAs (not in dim_contracts)
    AND t.from_address != t.to_address -- Exclude self-transfers
    ),
    main_query as (
    select
    t.from_address AS account,
    ROUND(SUM(t.value), 2) AS total_mon_sent,
    COUNT(*) AS total_transactions,
    ROUND((SUM(t.value) / total_mon.grand_total_mon) * 100, 2) || '%' AS percentage_of_total_mon
    from monad.testnet.fact_transactions t
    LEFT JOIN monad.testnet.dim_contracts c
    ON t.to_address = c.address -- Check if receiver is a smart contract
    JOIN total_mon -- Join the total MON sent across all accounts
    where t.value > 0 and t.block_timestamp >= '2025-02-19 15:00' and t.tx_succeeded = 'TRUE'
    AND c.address IS NULL -- Only keep EOAs (not in dim_contracts)
    AND t.from_address != t.to_address -- Exclude self-transfers
    group by t.from_address, total_mon.grand_total_mon
    having count(*) > 100
    ORDER BY total_mon_sent DESC
    limit 10
    )

    SELECT * FROM main_query
    UNION ALL
    SELECT
    'TOTAL' AS account,
    ROUND(SUM(total_mon_sent), 2) AS total_mon_sent,
    SUM(total_transactions) AS total_transactions,
    Last run: about 1 month ago
    ACCOUNT
    TOTAL_MON_SENT
    TOTAL_TRANSACTIONS
    PERCENTAGE_OF_TOTAL_MON
    1
    0x8371a1bf585d7b11b53c9e3919b63e886b3965161778567.646771.59%
    2
    0xfa735cca8424e4ef30980653bf9015331d9929db1614842.6452691.44%
    3
    0xe2c4d6b951f6737fe0610d703462f6e81729091b1415538.386301.26%
    4
    0x0ad0ed704eefc04638695a7a51ed57b563b9bf181391943.151131.24%
    5
    0x4d60587e3e97e15c0f443088195df319bcfd6f59885398101330.79%
    6
    0x4c0371fdbf4c62d990c19c23c8bafb78573a39cb885326.02101250.79%
    7
    0xdd6cfa7cede2780cdbc5ea752d5e7781d3f0b051760710.7950190.68%
    8
    0x77a6ab7dc9096e7a311eb9bb4791494460f53c82666701.11084910.59%
    9
    0x8c826f795466e39acbff1bb4eeeb759609377ba1601324.521852780.54%
    10
    0x051785102854b9b9c93c504d9675ffda7a12e07f567194.6511102960.51%
    11
    TOTAL10567546.8914360319.43%
    11
    745B
    6s