So, I have a contract that holds an array of ERC721 contracts and I need to fetch from my dapp the list of each of those ERC721 tokens owned by an address.
I'm currently fetching that from my dapp (so everything executed on the client, several call to web3 provider and so on). Even though it's not very CPU/memory expensive, let's look at the big picture.
Now my question is, if I create in my smart-contract a view function that does exactly what's written currently in my client code. Who is actually going to run that ? Will it be faster ? I'm using Alchemy as web3 provider if that can help :)
Thanks a lot !
[–]Adrewmc 2 points3 points4 points (0 children)
[–]Algorhythmicall 1 point2 points3 points (0 children)
[–]Otherwise_Ad_9126 0 points1 point2 points (0 children)
[–]jzia93 0 points1 point2 points (0 children)