Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 468 Bytes

mina_accounts.md

File metadata and controls

38 lines (25 loc) · 468 Bytes
description
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.

mina_accounts

Params

null

Result

string[]

Errors

null

Example

Request

await window.mina?.getAccounts();

Result

// have connect account.
["address"]

// if not 
[]