MultiCall Examples
We make multiple calls via a single API call to our infura node.
Prerequisites
- Please go through the brownie install documenation
- Please have an environment varibale called
WEB3_INFURA_PROJECT_ID
set to your infura project id. You can add it to a.env
file and adddotenv: .env
to thebrownie-config.yaml
file.
Quickstart
git clone https://github.com/PatrickAlphaC/multicall
cd multicall
Simple Example
brownie run scripts/multicall.py
Plotting Example
If you installed brownie with pipx, inject matplotlib
into the environment. Otherwise, just run pip install matplotlib
.
pipx inject eth-brownie matplotlib
restart terminal
brownie run scripts/multicall_plot.py