manageWallets
Manage a user's wallets for a specific application
This function will allow users to manage the wallets they use within your application.
1
venlyConnect.flows.manageWallets('ETHEREUM');
Copied!
As an application, it is possible to have a user manage his wallets for a specific chain. During this action, the user can link existing wallets or import a wallet. When the user returns to the app, a wallet of a specific chain will be linked to the application. When a user does not have any wallets yet, a user can indicate to create a new wallet.

Signature

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

Returns

1
Promise<PopupResult | void>
Copied!

Parameters

Parameter
Required
Description
chain
True
The chain for which your user wants to manage his wallets. Same as SecretType.
options
False
Add options.
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 manage wallets screen for his Ethereum wallets
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.manageWallets(
5
'ETHEREUM',
6
{
7
redirectUri: 'https://wallet.venly.io',
8
correlationID: 'f173a18d-7a75-4429-9df4-25153d64a921'
9
}
10
);
Copied!

Object Types

​
Last modified 2mo ago