Solflare Wallet
  • ☀️Introduction
    • The Power of Self-Custody
    • Benefits of Non-Custodial Wallets
    • Digital Wallet Best Practices
    • Bigger Picture
  • Onboarding
    • 📞Mobile
      • Generate a New Wallet
      • Connect a Ledger Wallet
      • Import any Solana Wallet
    • 🖥️Web App & Extension
      • Generate a New Wallet
      • Import Your Ledger Device
      • Import Your Keystone Device
      • Import any Solana Wallet
    • 🚶Next Steps
  • Integrations
    • ⛓️Integrate Solflare
      • MetaMask
      • Using the Solana Wallet Adapter
      • Solflare Wallet SDK
    • 🎭Profile Picture Protocol
      • Get a Wallet's Profile Picture
      • Set NFT as Profile Picture
      • Remove a Profile Picture
    • ⚡Solflare Notifications
      • Sending Notifications
      • User's Perspective
        • Notification Center
        • Receiving Notifications
        • Subscription Management
      • API Endpoints
        • Broadcast Endpoint
        • Unicast Endpoint
        • List Casts Endpoint
        • View Cast Endpoint
        • Check Public Key Subscription Status for Domain
    • 🖼️NFT Standard
      • URI JSON Schema
      • CDN hosted files
      • Collections
      • Additional Attributes Specification
      • Order of JSON Fields
    • 🔗Deeplinks
      • Provider Methods
        • Connect
        • Disconnect
        • SignAndSendTransaction
        • SignAllTransactions
        • SignTransaction
        • SignMessage
      • Other Methods
        • Browse
      • Handling Sessions
      • Specifying Redirects
      • Encryption
      • Limitations
Powered by GitBook
On this page
  • Base URL
  • Query String Parameters
  • Returns
  • Example

Was this helpful?

  1. Integrations
  2. Deeplinks
  3. Provider Methods

Disconnect

PreviousConnectNextSignAndSendTransaction

Last updated 2 years ago

Was this helpful?

After the initial event, an app may disconnect from Solflare at any time. When Solflare is disconnected, it will reject all signature requests until a new connection is established.

Base URL

https://solflare.com/ul/v1/disconnect

Query String Parameters

  • dapp_encryption_public_key (required): The app's original encryption public key for an existing Connect session.

  • nonce (required): A base58-encoded nonce is used to encrypt the request.

  • redirect_link (required): Solflare should redirect the user to this URI after completion. For more information, please see . URL-encoded.

  • payload (required): An encrypted JSON string with the following fields:

    {
        "session": "...", // token received from the connect method
    }
    • session (required): The session token received from the Connect method. Please see for more details.

Returns

Approve

No query params are returned.

Reject

An errorCode and errorMessage as query parameters.

{
  "errorCode": "...",
  "errorMessage": "..."
}

Example

Please see for a complete list of possible error codes.

Please refer to the method implemented in our demo application.

🔗
Connect
Specifying Redirects
Handling Sessions
Errors
disconnect