Query editor
-- Daily transaction-sender projection of canonical Tycho User Volume.---- This is an ingestion source, not a dashboard presentation. It preserves-- the physical chain and raw EVM transaction sender so a consumer that has-- resolved an explorer transaction can answer for that exact address on that-- exact chain. The value is the same E19 identity as the headline:---- allocated call-grain provenance.external_usd-- + transaction-grain Unallocated, bound once to the transaction's tx.from---- Parameters use a half-open UTC window. Scheduled collection requests the-- previous complete UTC day; a reviewed backfill may request at most 31 days.-- Missing provenance, an unbound/ambiguous supplement transaction, a stale-- physical receipt, an incomplete day, or an invalid parameter emits no-- coverage rows and therefore cannot be interpreted as zero downstream.WITH requested_params AS (SELECTLOWER('{{chain}}') AS requested_chain,CAST(CAST('{{start_date}}' AS TIMESTAMP) AS DATE) AS window_start,CAST(CAST('{{end_date}}' AS TIMESTAMP) AS DATE) AS window_end,CAST(at_timezone(CURRENT_TIMESTAMP, 'UTC') AS DATE) AS utc_today),params AS (SELECT*,requested_chain IN ('all', 'ethereum', 'base', 'unichain', 'arbitrum', 'bnb','polygon', 'plasma', 'robinhood') AS has_supported_chain,window_start < window_endAND window_end <= utc_todayAND date_diff('day', window_start, window_end) BETWEEN 1 AND 31AS has_valid_complete_windowFROM requested_params),supported_chains AS (SELECT * FROM (VALUES('ethereum'),('base'),('unichain'),('arbitrum'),('bnb'),('polygon'),('plasma'),('robinhood')) AS t(chain)),requested_chains AS (SELECT c.chainFROM supported_chains cCROSS JOIN params pWHERE p.has_supported_chainAND (p.requested_chain = 'all' OR p.requested_chain = c.chain)),requested_days AS (