Query editor
WITH t AS (SELECT 'ethereum' chain, block_date, tx_hash, trace_address, to_hex(input) h FROM ethereum.traces WHERE block_date >= date '2026-10-10' AND block_date < date '2026-11-09' AND success AND "to" = 0x1644d2477f809cc2c71bccfd6dc9497e3f83210d AND bytearray_length(input) > 4UNION ALLSELECT 'base' chain, block_date, tx_hash, trace_address, to_hex(input) h FROM base.traces WHERE block_date >= date '2026-10-10' AND block_date < date '2026-11-09' AND success AND "to" = 0xaba5b53b03eafad1c5fc8bd5fc765fc85bb3de67 AND bytearray_length(input) > 4UNION ALLSELECT 'arbitrum' chain, block_date, tx_hash, trace_address, to_hex(input) h FROM arbitrum.traces WHERE block_date >= date '2026-10-10' AND block_date < date '2026-11-09' AND success AND "to" = 0x924f147c50ea59f5180a26031a8b65b2aa1e81cd AND bytearray_length(input) > 4UNION ALLSELECT 'bnb' chain, block_date, tx_hash, trace_address, to_hex(input) h FROM bnb.traces WHERE block_date >= date '2026-10-10' AND block_date < date '2026-11-09' AND success AND "to" = 0x7f3d12bbafb8955e51b3ab9588b34c8ad95bda4e AND bytearray_length(input) > 4UNION ALLSELECT 'polygon' chain, block_date, tx_hash, trace_address, to_hex(input) h FROM polygon.traces WHERE block_date >= date '2026-10-10' AND block_date < date '2026-11-09' AND success AND "to" = 0xbd4e6011f03355c2a377fd9af939322a7d0a1bc1 AND bytearray_length(input) > 4UNION ALLSELECT 'unichain' chain, block_date, tx_hash, trace_address, to_hex(input) h FROM unichain.traces WHERE block_date >= date '2026-10-10' AND block_date < date '2026-11-09' AND success AND "to" = 0xcba5574597ad00ea250fd106dab4fc7461949635 AND bytearray_length(input) > 4UNION ALLSELECT 'robinhood' chain, block_date, tx_hash, trace_address, to_hex(input) h FROM robinhood.traces WHERE block_date >= date '2026-10-10' AND block_date < date '2026-11-09' AND success AND "to" = 0x09215a470bd585e59eb3f4b612fbd2678131ff9e AND bytearray_length(input) > 4UNION ALLSELECT 'plasma' chain, block_date, tx_hash, trace_address, to_hex(input) h FROM plasma.traces WHERE block_date >= date '2026-10-10' AND block_date < date '2026-11-09' AND success AND "to" = 0x0953c7e23b44259e5e5630e9b97c31d7278c4c85 AND bytearray_length(input) > 4), m AS (SELECT chain, block_date, tx_hash, trace_address,CASE WHEN strpos(h, '66796E642F') > 0 THEN regexp_extract(from_utf8(from_hex(substr(h, strpos(h, '66796E642F'), 24))), '^fynd/[0-9.]*') WHEN strpos(h, '70726F70656C6C65722F') > 0 THEN regexp_extract(from_utf8(from_hex(substr(h, strpos(h, '70726F70656C6C65722F'), 48))), '^propeller/[A-Za-z0-9_.-]*') ELSE 'none' END wmFROM t)SELECT m.chain, date_add('day', -7 * CAST(floor(date_diff('day', m.block_date, date '2026-11-08') / 7) AS integer), date '2026-11-08') period_end, coalesce(m.wm, 'unparsed') wm, coalesce(a.category, 'NO_ATTRIBUTION_ROW') ph_category,count(*) calls, count(DISTINCT m.tx_hash) txs, sum(p.external_usd + p.recycled_usd + p.unresolved_usd) gross_usd, sum(p.external_usd) ext_usd, repeat('.', 300) padFROM m JOIN dune.propeller_heads.result_tycho_router_call_fact_v3_live c ON c.chain = m.chain AND c.tx_hash = m.tx_hash AND c.trace_address = m.trace_address AND c.block_date = m.block_dateLEFT JOIN dune.propeller_heads.dataset_tycho_call_provenance p ON p.router_call_key = c.router_call_key AND p.chain = c.chainLEFT JOIN dune.propeller_heads.result_tycho_router_source_attribution_v3_live a ON a.router_call_key = c.router_call_key AND a.chain = c.chainGROUP BY 1,2,3,4 ORDER BY 1,2,3,4