In my project, I encountered a situation where I needed to fetch the ERC1155 tokens that a specific smart contract owns ( Assuming that I have already transferred a bunch of ERC155 tokens to it from another smart contract )
Alchemy has already provided valuable solutions ( Alchemy SDK ) for fetching all NFTs of an address ( EOA ) or fetching a whole NFT collection. Still, my need is different now as my target owner is not an EOA but a smart contract itself.
Is there a solution to this? Or I should query the whole contract's events?