Skip to main content
deleted 34 characters in body
Source Link

The method to aggregate functions belonging to contracts is given in this library: https://pypi.org/project/web3-multicall/

But my question is, how can I aggregate a basic web3 function (that is not a part of any contract) too using Multicall?

In my case, I want to get multiple transaction receipts/timestamps (using the web3.eth.get_transaction_receipt() or web3.eth.getBlock().timestamp function) via a single API call.

I see that this isWould it be possible using the web3-multicall library for Javascript (see Helper Functions): https://www.npmjs.com/package/@dopex-io/web3-multicall

Is therethem or any way I can perform the same using web3other basic non-python toocontract functions such as web.eth.eth_balance() to be used with the Multicall feature?

The method to aggregate functions belonging to contracts is given in this library: https://pypi.org/project/web3-multicall/

But my question is, how can I aggregate a basic web3 function (that is not a part of any contract) too using Multicall?

In my case, I want to get multiple transaction receipts (using the web3.eth.get_transaction_receipt() function) via a single API call.

I see that this is possible using the web3-multicall library for Javascript (see Helper Functions): https://www.npmjs.com/package/@dopex-io/web3-multicall

Is there any way I can perform the same using web3-python too?

The method to aggregate functions belonging to contracts is given in this library: https://pypi.org/project/web3-multicall/

But my question is, how can I aggregate a basic web3 function (that is not a part of any contract) too using Multicall?

In my case, I want to get multiple transaction receipts/timestamps (using the web3.eth.get_transaction_receipt() or web3.eth.getBlock().timestamp function) via a single API call.

Would it be possible for them or any other basic non-contract functions such as web.eth.eth_balance() to be used with the Multicall feature?

Source Link

How to Multicall a non contract function in web3 python?

The method to aggregate functions belonging to contracts is given in this library: https://pypi.org/project/web3-multicall/

But my question is, how can I aggregate a basic web3 function (that is not a part of any contract) too using Multicall?

In my case, I want to get multiple transaction receipts (using the web3.eth.get_transaction_receipt() function) via a single API call.

I see that this is possible using the web3-multicall library for Javascript (see Helper Functions): https://www.npmjs.com/package/@dopex-io/web3-multicall

Is there any way I can perform the same using web3-python too?