add From Wallet
Connects an external wallet and adds it as a signer.
Delegates to the configured ExternalWalletAdapter to prompt the user for wallet authorization (e.g., showing a wallet selection modal). If the connection succeeds and WalletConnectionStorage is configured, the connection metadata is persisted for later restoration via restoreConnections.
Return
The connected wallet info, or null if the user cancelled or the operation was unavailable
Throws
if no wallet adapter is configured
if the wallet connection fails
Example:
val wallet = manager.addFromWallet()
if (wallet != null) {
println("Connected: ${wallet.walletName} (${wallet.address})")
}Content copied to clipboard