Closed 0x67 closed 1 year ago
The use case is pretty niche, but if you always call multiple methods and/or multiple contracts, this can significantly reduce the time needed to complete the requests.
The use case is pretty niche, but if you always call multiple methods and/or multiple contracts, this can significantly reduce the time needed to complete the requests.
Amazing PR. thank you so much @0x67. I will take a look this week.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
No option to make aggregated/batched requests.
Issue Number: N/A
What is the new behavior?
Added
batched: boolean
toProviderOptions
to create MulticallProvider, this should work on any ethers.js v5 providers.Does this PR introduce a breaking change?
Other information
Not sure if this is relevant, but this is my first ever contribution ever to OSS project, so don't hesitate to correct me.