Ideally window.ethereum.request supports passing an array of requests in to support JSON-RPC Batching.
Batching is in the JSON-RPC protocol already we just haven't supported it yet via window.ethereum.request. It is supported however with window.ethereum.send, so the functionality already exists in metamask, we just need to add it as a valid parameter and handle it the same way window.ethereum.send does.
Ideally
window.ethereum.requestsupports passing an array of requests in to support JSON-RPC Batching.Batching is in the JSON-RPC protocol already we just haven't supported it yet via
window.ethereum.request. It is supported however withwindow.ethereum.send, so the functionality already exists in metamask, we just need to add it as a valid parameter and handle it the same waywindow.ethereum.senddoes.