dag_requestAccounts

circle-info

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-1102arrow-up-right specification.

Parameters

None

Return Type

DAGAddress[] - User accounts available.

circle-info

Important

The account at index 0 will always be the active account in Stargazer.

Example

await provider.request({ method: "dag_requestAccounts", params: [] });
// ["DAG88C9WDSKH451sisyEP3hAkgCKn5DN72fuwjfX"]

Last updated

Was this helpful?