Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

default account in wallet #252

Open
ratik21 opened this issue Jun 27, 2021 · 4 comments
Open

default account in wallet #252

ratik21 opened this issue Jun 27, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@ratik21
Copy link

ratik21 commented Jun 27, 2021

Hi, currently algosigner.accounts returns an array of all accounts in wallet.
Is there an API to fetch a wallet's default(i.e currently active) account ? Or is it algosigner.accounts({..})[0] (first account from list of accounts)?

If not, we would like to make a feature request to set/support a default account in wallet.

@purestaketdb
Copy link
Contributor

Thanks for submitting this. The Foundation has a number of ideas about streamlining how wallets respond with accounts and we'll certainly bring this request to them.

@purestaketdb purestaketdb added the enhancement New feature or request label Jul 1, 2021
@robert-zaremba
Copy link

To be precise: we need to know what's the current user account (currently selected account in the wallet). Do you have any ETA for that? It's blocking our templates. The workarund we have is to always select the first account, which may not be same what user wants.

@robert-zaremba
Copy link

Up. In fact what we need is the "currently" selected account.

@PureBrent
Copy link
Contributor

We are planning to meet and discuss account and wallet structure where this and other ideas can be looked at. Trying to make sure I understand exactly what you're looking for in this scenario.

Because the extension is closed when not directly interacting with and calls can be made using any address the user has added the current address could mean multiple things.

Did you mean to have the user indicate in the extension a primary account for any DApp? Current based on last address activity? The last one to interact with a specific asset? Or did you have a model you have used elsewhere that demonstrates the expected behavior?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants