Query editor
-- Token universe: query_8760843 (canonical mirror of the dataland token_pegs seed).-- Never hardcode token addresses here; change the universe query instead.-- Volume rule (matches Tempo internal transfer-volume definition):-- * in_scope_for_volume tokens only (curated fiat stablecoins + price-pinned RWA);-- * USD payment stablecoins valued at par, everything else at Dune's amount_usd;-- * excludes mint/burn legs, block-level system txs (tx_from 0x0) and Fee AMM flows (tx_to 0xfeec...).-- This is GROSS onchain transfer volume. It is not customer-attributed TPV: internal TPV-- additionally carves out issuer/infra internal movements, DEX/lending legs and market makers.WITH transfers AS (SELECTtr.block_date,u.symbol,u.token_class,CASE WHEN u.price_at_par THEN tr.amount ELSE tr.amount_usd END AS value_usdFROM tokens.transfers trINNER JOIN query_8760843 uON u.contract_address = tr.contract_addressAND u.in_scope_for_volumeWHERE tr.blockchain = 'tempo'AND tr.block_month >= date_trunc('month', date_trunc('week', current_date) - interval '84' day)AND tr.block_date >= date_trunc('week', current_date) - interval '84' dayAND tr.block_date <= current_dateAND tr."from" <> 0x0000000000000000000000000000000000000000AND tr."to" <> 0x0000000000000000000000000000000000000000AND (tr.tx_from IS NULL OR tr.tx_from <> 0x0000000000000000000000000000000000000000)AND (tr.tx_to IS NULL OR tr.tx_to <> 0xfeec000000000000000000000000000000000000))SELECTCAST(date_trunc('week', block_date) AS date) AS week,SUM(value_usd) AS transfer_volume_usdFROM transfersWHERE block_date < date_trunc('week', current_date)GROUP BY 1ORDER BY 1