Query editor
WITH combined_tx_logs AS (SELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_baseUNION ALLSELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_solanaUNION ALLSELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_ethereumUNION ALLSELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_arbitrumUNION ALLSELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_polygon)SELECTSUM(volume_usd) AS total_onchain_volume_usd,ROUND(SUM(volume_usd) / 1e6, 2) AS total_volume_in_millionsFROM combined_tx_logs;