Query editor
-- DXT Pro user wallets → HyperEVM activity-- Input: {{addresses}} = comma-separated lowercase 0x-prefixed EOAs-- HyperEVM mainnet went live in Feb 2025WITH user_wallets AS (SELECTfrom_hex(replace(lower(trim(addr)), '0x', '')) AS addr_bin,lower(trim(addr)) AS addr_strFROM unnest(split('{{addresses}}', ',')) AS t(addr)WHERE length(trim(addr)) = 42),hyperevm_outbound AS (SELECT"from" AS addr_bin,COUNT(*) AS hyperevm_tx_count,MIN(block_time) AS first_hyperevm_tx,MAX(block_time) AS last_hyperevm_tx,COUNT(DISTINCT "to") AS distinct_contracts_touchedFROM hyperevm.transactionsWHERE "from" IN (SELECT addr_bin FROM user_wallets)AND block_date >= DATE '2025-02-01'GROUP BY 1),hyperevm_inbound AS (-- Receiving side: did anyone send them tokens / value on HyperEVM?SELECT"to" AS addr_bin,COUNT(*) AS hyperevm_inbound_countFROM hyperevm.transactionsWHERE "to" IN (SELECT addr_bin FROM user_wallets)AND block_date >= DATE '2025-02-01'GROUP BY 1)SELECTuw.addr_str AS owner_address,COALESCE(o.hyperevm_tx_count, 0) AS hyperevm_tx_count,COALESCE(i.hyperevm_inbound_count, 0) AS hyperevm_inbound_count,o.first_hyperevm_tx,o.last_hyperevm_tx,COALESCE(o.distinct_contracts_touched, 0) AS distinct_contracts_touched,(o.addr_bin IS NOT NULL) AS has_hyperevm_outbound,(i.addr_bin IS NOT NULL) AS has_hyperevm_inbound,(o.addr_bin IS NOT NULL OR i.addr_bin IS NOT NULL) AS has_hyperevm_anyFROM user_wallets uwLEFT JOIN hyperevm_outbound o ON o.addr_bin = uw.addr_binLEFT JOIN hyperevm_inbound i ON i.addr_bin = uw.addr_binORDER BY hyperevm_tx_count DESC, hyperevm_inbound_count DESC