Skip to content

Documentation / js-sdk-core / getUserEmbeddedSolanaWallet

Function: getUserEmbeddedSolanaWallet()

getUserEmbeddedSolanaWallet(user): any

Parameters

user: any

A privy user object

Returns

any

The user's primary embedded Solana wallet account

Description

Finds the primary (HD index = 0) embedded Solana wallet account for a given user.

Example

ts
const account = getUserEmbeddedSolanaWallet(user)