Skip to content

Documentation / js-sdk-core / getAllUserEmbeddedBitcoinWallets

Function: getAllUserEmbeddedBitcoinWallets()

getAllUserEmbeddedBitcoinWallets(user): any[]

Parameters

user: any

A privy user object

Returns

any[]

The user's embedded Bitcoin wallet accounts, sorted by wallet_index.

Description

Finds all of the embedded Bitcoin wallet accounts for a user.

Example

ts
const accounts = getAllUserEmbeddedBitcoinWallets(user)