linkWallets
Link a user wallet to your application
This function will allow users to link their existing wallets with your application.
1
venlyConnect.flows.linkWallets();
Copied!
The difference with manageWallets:
  • A user can only link wallets, it is not possible to create or import a wallet
  • A list of all wallets is returned for any chain (it is possible to filter this).
Use case: a portfolio app where a user wants to quickly link all his wallets to get an overview of his complete portfolio.

Signature

1
venlyConnect.flows.linkWallets(options?: {
2
redirectUri?: string,
3
correlationID?: string
4
}): Promise<PopupResult | void>
Copied!

Returns

1
Promise<PopupResult | void>
Copied!

Parameters

Parameter
Required
Description
options
False
Options you want to provide
options.redirectUri
False
URI you want users to be redirected to after linking their wallets. Defaults to current URI.
options.correlationID
False
Unique correlationID allowing you to identify this specific transaction. It will be appended as a request parameter to the redirectUri upon return.

Example

1
// redirects the user to the link wallets screen
2
// + redirects the user to https://wallet.venly.io once he's done
3
// + appends the correlationID as a request parameter when being redirected back
4
venlyConnect.flows.linkWallets({
5
redirectUri: 'https://wallet.venly.io',
6
correlationID: 'f173a18d-7a75-4429-9df4-25153d64a921'
7
});
Copied!

Object Types

Last modified 2mo ago