Aggregate results from multiple Ethereum contract calls into a single RPC call, using the MakerDAO Multicall contract. Current version 0.15.2, compatible with Python >=3.10 and <4. Release cadence is irregular.
pip install multicallNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a Multicall instance with a list of Call objects, then call it to aggregate results.
Replace `.aggregate()` with a direct call: `multi()` instead of `multi.aggregate()`.
Use `Multicall(..., web3=w3)` instead of `Multicall(..., _w3=w3)`.
Use `Web3.to_checksum_address()` on all addresses before passing to `Call`.
Verify the contract address and RPC URL. Ensure the block is within the chain's range.
Call the instance directly: `multi()` instead of `multi.aggregate()`.
Use `Web3.to_checksum_address('0x...')` on the address.