redirectURL property

String redirectURL
getter/setter pair

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 /connect endpoint.
  • Once approved It redirects user to redirect with phantom_encryption_public_key, nonce and encrypted data as query parameters.
  • If the user denies the connection request, Phantom will redirect the user to redirect with errorCode and errorMessage as query parameter.
  • Refer to Errors for a full list of possible error codes.

Implementation

late String redirectURL;