- Preparing search index...
- The search index is not available
Stacks.js
Function restoreWalletAccounts
- restoreWalletAccounts(__namedParameters: {
gaiaHubUrl: string;
network: StacksNetwork;
wallet: Wallet;
}): Promise<Wallet>
-
Parameters
-
__namedParameters: {
gaiaHubUrl: string;
network: StacksNetwork;
wallet: Wallet;
}
-
gaiaHubUrl: string
-
network: StacksNetwork
-
Returns Promise<Wallet>
Restore wallet accounts by checking for encrypted WalletConfig files, stored in Gaia.
This helps provide a better UX for users, so we can keep track of accounts they've created, and usernames they've used.