banteg / multicall.py

aggregate results of multiple smart contract calls into one
MIT License
246 stars 106 forks source link

How to call a function from web3.eth.* #65

Closed VinhTruong2001 closed 1 year ago

VinhTruong2001 commented 1 year ago

Hello, I need to use Multicall with web3.eth.getCode() but I don't know how to do that, I wanna check a list of addresses to know which is contract address. Could you help me. Thank you.

BobTheBuidler commented 1 year ago

You won't be able to do this using multicall. Check out my lib dank_mids if you want to batch your getCode calls into one batched RPC call.

https://github.com/BobTheBuidler/dank_mids