Connect to installed wallets directly (MetaMask, Phantom, WalletConnect modal, etc) without showing the Aurum modal
import { WalletId } from '@aurum-sdk/types';const address = await aurum.connect(WalletId.MetaMask);
Show Supported Wallet IDs
WalletId.MetaMask
WalletId.Phantom
WalletId.CoinbaseWallet
WalletId.Rabby
WalletId.Brave
WalletId.WalletConnect
connect(WalletId.WalletConnect) is supported — it opens the built-in WalletConnect (AppKit) modal. Use getWalletConnectSession() instead if you want to render your own QR code.connect(WalletId.Email) is not supported and will throw — use emailAuthStart / emailAuthVerify for the OTP flow.
Display your own QR code for WalletConnect-compatible wallets
1
Get Session URI
Call getWalletConnectSession() to generate a connection URI.
2
Display QR Code
Render the URI as a QR code using your preferred library.
3
Wait for Connection
The waitForConnection() promise resolves when the user scans and approves.
const { uri, waitForConnection } = await aurum.getWalletConnectSession();// Display your own QR coderenderQRCode(uri);// Wait for user to scan and approvetry { const address = await waitForConnection();} catch (error) { console.error(error);}