buildConnectionUri method
Generate an URL to connect to Phantom Wallet
Implementation
Uri buildConnectionUri({String? cluster}) {
// https://phantom.app/ul/<version>/<method>
// phantom://<version>/<method>
return Uri(
scheme: _scheme,
host: _host,
path: '/ul/v1/connect',
queryParameters: {
'dapp_encryption_public_key': dappPublicKey,
'cluster': cluster ?? 'mainnet-beta',
'app_url': _appUrl,
'redirect_link': '$_redirectLink?phantomRequest=connect',
},
);
}