Query editor
WITH target_users AS (-- 1. Get unique wallets that interacted with your target contractSELECT DISTINCT "from" AS wallet_addressFROM linea.transactionsWHERE "to" = 0xcA2538De53E21128B298a80d92f67b33605FEECC),wallet_genesis AS (-- 2. Identify the very first transaction received by each wallet-- Double quotes are used for "value" to avoid reserved keyword errorsSELECTt."to" AS wallet_address,t."from" AS funder_address,t."value" / 1e18 AS initial_eth,t.block_time AS first_tx_time,ROW_NUMBER() OVER (PARTITION BY t."to" ORDER BY t.block_time ASC) as tx_rankFROM linea.transactions tJOIN target_users u ON t."to" = u.wallet_address)SELECTwallet_address,funder_address,initial_eth,-- Calculate wallet age in daysdate_diff('day', first_tx_time, now()) AS wallet_age_daysFROM wallet_genesisWHERE tx_rank = 1-- 3. Filter for wallets created in the last 3 months (90 days)AND date_diff('day', first_tx_time, now()) < 90ORDER BY wallet_age_days ASC