Disconnect

After the initial Connectarrow-up-right 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 Specifying Redirectsarrow-up-right. URL-encoded.

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

    {
        "session": "...", // token received from the connect method
    }

Returns

Approve

No query params are returned.

Reject

An errorCode and errorMessage as query parameters.

Please see Errorsarrow-up-right for a complete list of possible error codes.

Example

Please refer to the disconnectarrow-up-right method implemented in our demo application.

Last updated

Was this helpful?