Skip to main content

Class: QRCodeModal

Constructors

constructor

new QRCodeModal(options?): QRCodeModal

Constructor for the DPMWalletConnectModal.

Parameters

NameTypeDescription
options?DPMWalletConnectModalOptionsOptions to customize the DPMWalletConnectModal.

Returns

QRCodeModal

Defined in

packages/walletconnect-modal/build/index.d.ts:19

Properties

options

Private Readonly options: any

Defined in

packages/walletconnect-modal/build/index.d.ts:14

Methods

close

close(): void

Returns

void

Defined in

packages/walletconnect-modal/build/index.d.ts:28


open

open(uri, onClose): 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

NameTypeDescription
uristringThe URI to start the WalletConnect session.
onClose() => voidThe callback that will be called if the user closes the modal.

Returns

void

Defined in

packages/walletconnect-modal/build/index.d.ts:27