dag_requestAccounts
Important
This method will send a wallet activation request if the user hasn't activated their wallet in your dapp, you can read more about the Stargazer wallet activation process here.
Request the user to grant access to their Constellation accounts. This method follows the EIP-1102 specification.
Parameters
None
Return Type
DAGAddress[]
- User accounts available.
Important
The account at index 0 will always be the active account in Stargazer.
Example
TypeScript
await provider.request({ method: "dag_requestAccounts", params: [] });
// ["DAG88C9WDSKH451sisyEP3hAkgCKn5DN72fuwjfX"]