Query editor
-- q_sol_active_agents [Solana] panel: 3 counters (cumulative / 7d / 30d)-- caption: Distinct premium-paying token-account owners. ~4 cumulative. 7d/30d read 0 unless the demo ran this week — honest, not a bug. Multi-wallet agents may over/under-count.-- PACT NETWORK | SOLANA | Active Agents (cumulative + 7d/30d). action widened.WITH pact_txs AS (SELECT DISTINCT tx_id FROM solana.instruction_callsWHERE executing_account = '5bCJcdWdKLJ7arrMVMFh3z99rQDxV785fnD9XGcr3xwc'),pact_usdc_legs AS (SELECT t.block_time, t.from_owner, t.to_ownerFROM tokens_solana.transfers t JOIN pact_txs p ON p.tx_id = t.tx_idWHERE t.token_mint_address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'AND t.action IN ('transfer','transferChecked')AND t.from_owner IS NOT NULL AND t.to_owner IS NOT NULL),pool_owners AS (SELECT to_owner AS owner FROM pact_usdc_legs INTERSECT SELECT from_owner AS owner FROM pact_usdc_legs),agent_activity AS (SELECT from_owner AS agent, block_time FROM pact_usdc_legsWHERE to_owner IN (SELECT owner FROM pool_owners) AND from_owner NOT IN (SELECT owner FROM pool_owners))SELECTCOUNT(DISTINCT agent) AS agents_cumulative,COUNT(DISTINCT IF(block_time >= now() - INTERVAL '7' day, agent)) AS agents_active_7d,COUNT(DISTINCT IF(block_time >= now() - INTERVAL '30' day, agent)) AS agents_active_30dFROM agent_activity