Open samlaf opened 2 years ago
Perhaps it would be better to use https://github.com/pooltogether/etherplex
I found this which is also very insightful: https://chainstack.com/the-ultimate-guide-to-getting-multiple-token-balances-on-ethereum/ Your description of the different multicall alternatives is thus missing the eip-1767 graphql interface (alternative to json-rpc interface), which seems to be the fastest!
This js version is actually very different from the brownie version you published. It uses indexed-finance's static multicall, which uses constructor magic instead of actually calling a deployed contract. This however, suffers from the limitation that the returned bytes cannot exceed 24kB. Trying to increase
numberOfRounds
from 10 to 50 results inSee https://github.com/indexed-finance/multicall/issues/6 for more info.