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', current_date - interval '29' day)AND tr.block_date >= current_date - interval '29' 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))SELECTmin(block_date) AS start_date,max(block_date) AS end_date,sum(value_usd) AS trailing_30d_tpv_usd,count(*) AS transfer_countFROM transfers