algosigner icon indicating copy to clipboard operation
algosigner copied to clipboard

default account in wallet

Open ratik21 opened this issue 3 years ago • 4 comments

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.

ratik21 avatar Jun 27 '21 13:06 ratik21

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 avatar Jul 01 '21 13:07 purestaketdb

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 avatar Jul 02 '21 07:07 robert-zaremba

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

robert-zaremba avatar Jul 12 '21 07:07 robert-zaremba

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?

PureBrent avatar Jul 12 '21 14:07 PureBrent