eth-fun
eth-fun copied to clipboard
Implement JSON-RPC batch support
ETHEREUM JSON RPC endpoints arguably support batching calls. So we should allow batching via the transport module
- https://web3js.readthedocs.io/en/v1.2.11/web3-eth.html#batchrequest
- https://sajya.github.io/docs/batch/
via alchemy docs:
https://docs.alchemy.com/alchemy/documentation/batch-requests
Batch requests are single HTTP requests that contain multiple API calls nested within it. Generally speaking, Alchemy does not recommend using batch requests as they can be less reliable compared to individual API calls. Alchemy does not recommend using batch requests for any methods. These requests tend to be less performant than sending them individually, so if you’re trying to optimize speed, this might not be the best option.