Query editor
SELECT date_trunc('month', block_time) as month, 'eth' as asset_id, COUNT(*) as tx_countFROM ethereum.transactionswhere date_trunc('day', block_time) >= TIMESTAMP {{start_of_month}}and date_trunc('day', block_time) <= TIMESTAMP {{end_of_month}}GROUP BY 1UNION ALLSELECT date_trunc('month', block_time) as month, 'matic' as asset_id, COUNT(*) as tx_countFROM polygon.transactionswhere date_trunc('day', block_time) >= TIMESTAMP {{start_of_month}}and date_trunc('day', block_time) <= TIMESTAMP {{end_of_month}}GROUP BY 1UNION ALLSELECT date_trunc('month', block_time) as month, 'avax' as asset_id, COUNT(*) as tx_countFROM avalanche_c.transactionswhere date_trunc('day', block_time) >= TIMESTAMP {{start_of_month}}and date_trunc('day', block_time) <= TIMESTAMP {{end_of_month}}GROUP BY 1UNION ALLSELECT date_trunc('month', block_time) as month, 'ftm' as asset_id, COUNT(*) as tx_countFROM fantom.transactionswhere date_trunc('day', block_time) >= TIMESTAMP {{start_of_month}}and date_trunc('day', block_time) <= TIMESTAMP {{end_of_month}}GROUP BY 1UNION ALLSELECT date_trunc('month', block_time) as month, 'celo' as asset_id, COUNT(*) as tx_countFROM celo.transactionswhere date_trunc('day', block_time) >= TIMESTAMP {{start_of_month}}and date_trunc('day', block_time) <= TIMESTAMP {{end_of_month}}GROUP BY 1UNION ALLSELECT date_trunc('month', block_time) as month, 'op' as asset_id, COUNT(*) as tx_countFROM optimism.transactionswhere date_trunc('day', block_time) >= TIMESTAMP {{start_of_month}}and date_trunc('day', block_time) <= TIMESTAMP {{end_of_month}}GROUP BY 1UNION ALLSELECT date_trunc('month', block_time) as month, 'arb' as asset_id, COUNT(*) as tx_countFROM arbitrum.transactionswhere date_trunc('day', block_time) >= TIMESTAMP {{start_of_month}}and date_trunc('day', block_time) <= TIMESTAMP {{end_of_month}}GROUP BY 1UNION ALLSELECT date_trunc('month', block_time) as month, 'base' as asset_id, COUNT(*) as tx_countFROM base.transactionswhere date_trunc('day', block_time) >= TIMESTAMP {{start_of_month}}and date_trunc('day', block_time) <= TIMESTAMP {{end_of_month}}GROUP BY 1UNION ALLSELECT date_trunc('month', block_time) as month, 'sol' as asset_id, COUNT(*) as tx_countFROM solana.transactionswhere date_trunc('day', block_time) >= TIMESTAMP {{start_of_month}}and date_trunc('day', block_time) <= TIMESTAMP {{end_of_month}}GROUP BY 1