Once you have obtained your connection uri, you can open or close the modal.From here on, use provider as you normally would, WalletConnectModal will be shown and hidden automatically i.e.
Copy
await modal.openModal({ uri: "YOUR_CONNECTION_URI",});// Do some work...modal.closeModal();
interface OpenOptions { // Uri that will be used to generate qrcode and mobile links, required uri: string; // CAIP-2 compliant chain ids to override initial chains defined when creating the modal // Learn about CAIP-10: https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-10.md chains?: string[];}