redirectURL property
Generate an URL to connect to Solana cluster with Phantom Wallet.
- In order to start interacting with Phantom, an app must first establish a connection.
- This connection request will prompt the user for permission to share their public key, indicating that they are willing to interact further.
- It returns a url which will be used to send to Phantom Wallet
/connectendpoint. - Once approved It redirects user to
redirectwithphantom_encryption_public_key,nonceand encrypteddataas query parameters. - If the user denies the connection request, Phantom will redirect the user to
redirectwitherrorCodeanderrorMessageas query parameter. - Refer to Errors for a full list of possible error codes.
Implementation
late String redirectURL;