Get Account
Get the account of a user.
Okto SDK provides the getAccount()
method to retrieve details of wallets connected to the current user's Okto account. This includes both embedded wallets created via Okto and external wallets connected by the user (e.g., MetaMask, Phantom).
Available on





To enable these chains for your application, please configure them in the Okto Dashboard.
Not available on
Method Overview
Methods | Description |
---|---|
async getAccount | Get the account of a user |
Get Account
async getAccount()
retrieves the list of all wallets associated with the currently authenticated user.
In Okto, an account represents the user's identity in the Okto ecosystem, encompassing both embedded wallets seamlessly created by Okto and external wallets users choose to connect.
Parameters
Parameter | Type | Description |
---|---|---|
oktoClient | OktoClient | Okto client |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Promise<Wallet[]> | Returns the list of wallets |
Example
Note
In case of errors, debug the error using the error code and refer to the SDK errors and warnings documentation for more details.