Interface: QrCodeModalController
Interface that represents an object that can be used to display a QR code to the user to initiate a new WalletConnect session.
Methods
close
▸ close(): void
Function to close the modal. This function will to trigger the onCloseCb that has been passed to the open function.
Returns
void
Defined in
packages/walletconnect-v2/src/types.ts:155
open
▸ open(uri
, onCloseCb
): void
Function to open the modal and display the QR code that the user need to scan in order to start the WalletConnect session.
Parameters
Name | Type | Description |
---|---|---|
uri | string | The URI to start the WalletConnect session. |
onCloseCb | () => void | - |
Returns
void