Skip to content

Documentation / js-sdk-core / getUserEmbeddedEthereumWallet

Function: getUserEmbeddedEthereumWallet()

getUserEmbeddedEthereumWallet(user): any

Parameters

user: any

A privy user object

Returns

any

The user's embedded wallet account

Description

Finds the embedded wallet account (if it exists) for a given user.

Example

ts
const account = getUserEmbeddedWallet(user)
console.log(account.address)