Query editor
-- =====================================================================-- QUERY 4: FACILITATOR REVENUE - Infrastructure Economics-- =====================================================================-- "Virtuals - серьёзный фасилитатор на х402... один только сбор размеров-- комиссий всех фасилитаторов - это уже такой разрез инфры, который-- НИКТО не собирает пока" - Hempanda---- "все собирают объёмы/транзы через них, но никто пока не смотрит их доходы"---- This query tracks FACILITATOR REVENUE - the actual economic value-- captured by infrastructure providers (Virtuals, Clanker, etc.)-- =====================================================================WITH-- ===================== FACILITATOR CONTRACTS =====================-- These are the infrastructure providers that take feesfacilitators AS (SELECT contract_address, name, fee_model FROM (-- Virtuals Protocol - takes fees on agent launches and tradingSELECT 0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b AS contract_address,'Virtuals Protocol' AS name,'Trading + Launch Fees' AS fee_model-- Clanker - takes fees on token deploymentsUNION ALL SELECT 0x1bc0c42215582d5A085795f4bD602F775cA75467,'Clanker','Deployment Fees'-- Spectral - infrastructure providerUNION ALL SELECT 0x96419929d7949D6A801A6909c145C8EEf6A40431,'Spectral','Service Fees'-- x402/ERC-8004 Registry - registration feesUNION ALL SELECT 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432,'ERC-8004 Registry','Registration Fees') t),-- ===================== KNOWN FEE RECIPIENT ADDRESSES =====================-- Addresses where fees typically flow (protocol treasuries, fee collectors)fee_recipients AS (SELECT address, facilitator FROM (-- Virtuals fee addresses (example - need to verify actual addresses)SELECT 0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b AS address, 'Virtuals Protocol' AS facilitator-- Add more known fee recipient addresses as discovered) t),-- ===================== TRANSFER VOLUME THROUGH FACILITATORS =====================-- Total volume flowing through each facilitator (proxy for potential fees)facilitator_volume AS (SELECTDATE_TRUNC('day', t.evt_block_time) AS date,f.name AS facilitator,f.fee_model,-- Volume metricsSUM(CAST(t.value AS DECIMAL(38,0)) / 1e18) AS daily_volume,