Query editor
WITH unique_wallets AS (SELECT DISTINCT holder AS walletFROM query_7566735WHERE nft_contract IN (0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D, -- BAYC0x60e4d786628fea6478f785a6d7e704777c86a7c6, -- MAYC0xDBfD76AF2157Dc15eE4e57F3f942bB45Ba84aF24, -- BendDAO boundBAYC derivative0x69f37e419bD1457d2a25ed3f5d418169caAe8D1F, -- BendDAO boundMAYC derivative0xdb5485C85Bd95f38f9def0cA85499eF67dC581c0, -- Paraspace nBAYC derivative 2022-120x7285e8F0186a0A41E73ceF7603AD7b80A2d5a793, -- Paraspace nBAYC derivative 2023-080xFA51cdc70c512c13eF1e4A3dbf1e99082b242896 -- Paraspace nMAYC derivative 2022-12)),allowed_multisig_contracts AS (SELECT DISTINCT addressFROM ethereum.contractsWHERE namespace IN ('aragon', 'argent', 'ambire', 'ambirewallet_v2', 'aktionariat', 'cobo','castle', 'coinbase_smart_wallet','gnosis_safe', 'sequence', 'tokenbound', 'tokenbound_v3') OR name IN ('MultiOwnerModularAccountFactory', 'AccountImplementation')),safes_only AS (SELECT wallet FROM unique_walletsJOIN allowed_multisig_contracts amc ON amc.address = wallet)SELECT COUNT(*) FROM safes_only