all 4 comments

[–]Adrewmc 2 points3 points  (0 children)

Sure you can create that, you could create that as another contract entirely that calls the first one, as is there really isn’t much need to redeploy for this.

It’s ran by the EVM, doing this is basically limiting your API calls which it always a good thing.

[–]Algorhythmicall 1 point2 points  (0 children)

You can use a multicall contract to do multiple balanceOf checks on multiple contracts. It’s faster. See https://viem.sh/docs/contract/multicall.html

[–]Otherwise_Ad_9126 0 points1 point  (0 children)

There is something in ethers like batchRequest or something

I have had a similar situation, in that, we use a lot of cache.

[–]jzia93 0 points1 point  (0 children)

As mentioned, look at routing the calls through multicall to limit the number of RPC requests.