mina_requestAccounts
This method is used to request the current connect account. If there is a connected account, the connected account will be returned. If not, a popup window will show to request a connection.
Params
Result
interface ProviderError extends Error {
message: string; // error message.
code: number; // error code.
data?: unknown; // error body.
}
// string[] will contain the connected account address.
Promise<string[] | ProviderError>Error
Example
Request
Result
Last updated