Query editor
-- High-volume USDC addresses on Base (non-exchange, $100-$10k range, last 90 days)-- Goal: Find addresses with regular payment-sized USDC activityWITH usdc_transfers AS (SELECT"from" as address,'send' as direction,value / 1e6 as amount_usdc,evt_block_timeFROM erc20_base.evt_TransferWHERE contract_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 -- USDC on BaseAND value / 1e6 BETWEEN 100 AND 10000AND evt_block_time >= NOW() - INTERVAL '90' DAYUNION ALLSELECT"to" as address,'receive' as direction,value / 1e6 as amount_usdc,evt_block_timeFROM erc20_base.evt_TransferWHERE contract_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 -- USDC on BaseAND value / 1e6 BETWEEN 100 AND 10000AND evt_block_time >= NOW() - INTERVAL '90' DAY),-- Get known exchange addresses to excludeexchange_addresses AS (SELECT DISTINCT addressFROM cex.addressesWHERE blockchain = 'base'),filtered_transfers AS (SELECT t.*FROM usdc_transfers tLEFT JOIN exchange_addresses e ON t.address = e.addressWHERE e.address IS NULL)SELECTaddress,COUNT(*) as tx_count,SUM(amount_usdc) as total_volume_usdc,AVG(amount_usdc) as avg_tx_size,COUNT(CASE WHEN direction = 'send' THEN 1 END) as sends,COUNT(CASE WHEN direction = 'receive' THEN 1 END) as receives,ROUND(100.0 * COUNT(CASE WHEN direction = 'send' THEN 1 END) / COUNT(*), 1) as send_pct,MIN(evt_block_time) as first_tx,MAX(evt_block_time) as last_txFROM filtered_transfersGROUP BY addressHAVING COUNT(*) >= 10ORDER BY total_volume_usdc DESCLIMIT 200