Query editor
WITH erc7579_accounts AS (SELECT blockchain, account_addressFROM dune.rhinestone_dev.result_nexus_accountsUNION ALLSELECT blockchain, account_addressFROM dune.rhinestone_dev.result_safe_7579_accountsUNION ALLSELECT blockchain, account_addressFROM dune.rhinestone_dev.result_etherspot_accounts_addressUNION ALLSELECT blockchain, account_addressFROM query_6642333), accounts_by_chain AS (SELECTblockchain, array_agg(account_address) AS account_addressesFROM erc7579_accountsGROUP BY blockchain), direct_activity AS (SELECT DISTINCTl.blockchain, l.contract_address AS account_address, l.block_time, l.tx_hash, 'direct' AS execution_pathFROM (SELECT 'ethereum' AS blockchain, contract_address, block_time, tx_hashFROM ethereum.logsWHERE block_time >= TIMESTAMP '2023-12-01'UNION ALLSELECT 'base', contract_address, block_time, tx_hashFROM base.logsWHERE block_time >= TIMESTAMP '2023-12-01'UNION ALLSELECT 'optimism', contract_address, block_time, tx_hashFROM optimism.logsWHERE block_time >= TIMESTAMP '2023-12-01'UNION ALLSELECT 'bnb', contract_address, block_time, tx_hashFROM bnb.logsWHERE block_time >= TIMESTAMP '2023-12-01'