The client supports sending multiple actions as a single batch request.For example, the code below will make requests for a user account and to switch chains:
Copy
Ask AI
cbwallet.makeRequest( Request(actions: [ Action(jsonRpc: .eth_requestAccounts), Action(jsonRpc: .wallet_switchEthereumChain(chainId: "1666600000")) ])) { result in self.log("\(result)")}