Closed optima66 closed 1 year ago
Docs: https://docs.walletconnect.com/1.0/quick-start/dapps/node#initiate-connection
// Check if connection is already established
if (!connector.connected) {
// create new session
connector.createSession().then(() => {
// get uri for QR Code modal
const uri = connector.uri;
// display QR Code modal
WalletConnectQRCodeModal.open(
uri,
() => {
console.log("QR Code Modal closed");
},
true // isNode = true
);
});
}
I use this code to connect to trustwallet: https://docs.walletconnect.org/quick-start/dapps/client
This is my code:
But now I don't understand - I should see a popup window with qrcode how do I summon this window?