Query editor
WITH recipients AS (SELECTaddress as recipientFROM dune.lamora.dataset_current_badgeholders_2024),counts AS (SELECT'optimism' AS network,COUNT(*) AS transaction_count,COUNT(CASE WHEN block_date > CURRENT_DATE - INTERVAL '1' month THEN 1 END) AS last_month_countFROM optimism.transactionsWHERE"from" IN (SELECTrecipientFROM recipients)UNION ALLSELECT'zora' AS network,COUNT(*) AS transaction_count,COUNT(CASE WHEN block_date > CURRENT_DATE - INTERVAL '1' month THEN 1 END) AS last_month_countFROM zora.transactionsWHERE"from" IN (SELECTrecipientFROM recipients)UNION ALLSELECT'mode' AS network,COUNT(*) AS transaction_count,COUNT(CASE WHEN block_date > CURRENT_DATE - INTERVAL '1' month THEN 1 END) AS last_month_countFROM mode.transactionsWHERE"from" IN (SELECTrecipientFROM recipients)UNION ALLSELECT'arbitrum' AS network,COUNT(*) AS transaction_count,COUNT(CASE WHEN block_date > CURRENT_DATE - INTERVAL '1' month THEN 1 END) AS last_month_countFROM arbitrum.transactionsWHERE"from" IN (SELECTrecipientFROM recipients)UNION ALLSELECT'ethereum' AS network,COUNT(*) AS transaction_count,COUNT(CASE WHEN block_date > CURRENT_DATE - INTERVAL '1' month THEN 1 END) AS last_month_countFROM ethereum.transactionsWHERE