freemartianUser Total Purchase Transactions
    Updated 2025-04-30
    WITH collections AS (
    SELECT
    value:address AS collection_address,
    value:name AS collection_name
    FROM (
    SELECT livequery.live.udf_api('https://raw.githubusercontent.com/mehdimarjan/magiceden-on-monad/refs/heads/main/collections.json') AS response
    ), LATERAL FLATTEN (input => response:data)
    ),
    transactions AS (

    -- ======= single sale =======

    select
    el.block_timestamp,
    el.tx_hash,
    el.origin_from_address AS buyer,
    tr.value AS amount,
    count(*) as nft_count,
    'MON' as token_paid,
    1 as rank,
    FROM monad.testnet.fact_event_logs el
    LEFT JOIN monad.testnet.fact_transactions tr ON (el.tx_hash = tr.tx_hash)
    WHERE
    el.origin_to_address = '0x0000000000000068f116a894984e2db1123eb395'
    AND el.contract_address <> '0x0000000000000068f116a894984e2db1123eb395'
    AND el.origin_function_signature = '0xe7acab24'
    AND el.tx_succeeded
    -- AND el.block_timestamp::date > current_date - 30
    group by
    el.block_timestamp,
    el.tx_hash,
    el.origin_from_address,
    tr.value

    union all

    Last run: 6 days ago
    TRANSACTIONS
    COLLECTIONS
    VOLUME
    NFTS
    1
    1261480.79101089689
    1
    26B
    1104s