Query editor
with last30d_swaps as (selectaddress, count(address) as txns -- count number of txns per address and per month, max(block_date) as last_txn_date -- find the date of the last txn for each addressfrom solana.account_activitywhere tx_success = true -- ignore failed txnsand token_balance_change is not null -- ensures txn is a swap? Need more filter to ensure this?and token_balance_change != 0 -- ensures txn is a swap? Need more filter to ensure this?and block_date >= current_date - interval '30' day -- only look at txns in the past 30 days-- and address in ('2kCkS3bQ2KjkysghPTiodct2JvwQ2PWPhTp4MoJhTCBm',-- '2krWkfnMpzPidmZRE7htmxQbWri6gexPotdvzG6avccs',-- '2kjCeDKKK9pCiDqfsbS72q81RZiUnSwoaruuwz1avUWn',-- '2kZH3Zs4YdkE4GTkhS25hEARsB8LFMqsRfzNWaV9HnqK',-- '2kxFmGRrqCKMwy61sJSYpnE2ov4gWCewDaNnoQXx8m4c',-- '2kFxaaVnxWRHnVLjmy8DpaaNDPRVU6E9UefKs1P7Riu6')group by address)select *from last30d_swapswhere txns > 1 and txns < 300 -- keep wallets with 1 ~ 300 transactions in last 30 dayslimit 500