session
param that should be used on all subsequent methods. For more information on sessions, see Handle sessions.
app_url
(required): A URL used to fetch app metadata (such as title or icon) using the same properties found in Display your app. URL-encoded.dapp_encryption_public_key
(required): A public key used for end-to-end encryption. This will be used to generate a shared secret. For more information on how Phantom handles shared secrets, see Encryption.redirect_link
(required): The URI where Phantom should redirect the user upon connection. For more details, see Specify redirects. URL-encoded.cluster
(optional): The network that should be used for subsequent interactions. Can be either: mainnet-beta
, testnet
, or devnet
. Defaults to mainnet-beta
.phantom_encryption_public_key
: An encryption public key used by Phantom for the construction of a shared secret between the connecting app and Phantom, encoded in base58.
nonce
: A nonce used for encrypting the response, encoded in base58.
data
: An encrypted JSON string. Refer to Encryption to learn how apps can decrypt data
using a shared secret. Encrypted bytes are encoded in base58.
public_key
: The public key of the user, represented as a base58-encoded string.session
: A string encoded in base58. This should be treated as opaque by the connecting app, as it only needs to be passed alongside other parameters. Sessions do not expire. For more details, see Handle sessions.errorCode
and errorMessage
as query parameters. For a full list of possible error codes, see Errors.