mina_accounts

This method is used to request the current connected account. It is a silent request. If there is a connected account, it will return the connected account. If not, it will return an empty array.

Params

null

Result

string[]

Errors

null

Example

Request

await window.mina?.getAccounts();

Result

// have connect account.
["address"]

// if not 
[] 

Last updated