PhantomHelper class

Constructors

PhantomHelper.new({required Redirect redirect, required String appUrl, required String? redirectLink, required IReownCore core})
Initialization of PhantomHelper instance

Properties

dappPublicKey String
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
walletPublicKey String
no setter

Methods

buildConnectionUri({String? cluster}) Uri
Generate an URL to connect to Phantom Wallet
buildDisconnectUri({Uint8List? nonce}) Uri
Generate an URL to disconnect from Phantom Wallet and destroy the session.
buildSignAndSendTransactionUri({required String transaction, Uint8List? nonce}) Uri
Generate an URL with given transaction to signAndSend it with Phantom Wallet.
buildSignMessageUri({required String message, Uint8List? nonce}) Uri
Generates an URL with given nonce to be signed by Phantom Wallet If nonce is not passed it will generate one
buildSignTransactionUri({required String transaction, Uint8List? nonce}) Uri
Generate an URL with given transaction to sign it with Phantom Wallet.
buildUriSignAllTransactions({required List<String> transactions, Uint8List? nonce}) Uri
Generate an URL with given transactions to sign all with Phantom Wallet.
decryptPayload(Map<String, String> params) Future<Map<String, dynamic>>
Decrypts the data payload returned by Phantom Wallet
encryptPayload(Map<String, dynamic> data, Uint8List? nonce) Uint8List?
Encrypts the data payload to be sent to Phantom Wallet.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persistSession() Future<void>
resetSharedSecret() → void
restoreSession() Future<bool>
toString() String
A string representation of this object.
inherited
validateSignature(String message, String signature) bool
Verifies the signature returned by Phantom Wallet.

Operators

operator ==(Object other) bool
The equality operator.
inherited