Skip to main content
Privy enables you to update the policies, owners, and signers for a wallet.
Use the updateWallet method from the useUpdateWallet hook to update a wallet linked to the current user. Privy signs the request with the current user’s authorization signature and refreshes the user after the update.

Usage

Parameters

string
required
The ID of the user’s linked wallet to update.
UpdateWalletInput
required
The wallet fields to update. Omitted fields remain unchanged. Client-side ownership transfers (owner and owner_id) are not supported.
string[]
New policy IDs to enforce on the wallet. Currently, only one policy is supported per wallet.
{signer_id: string}[]
The key quorum IDs to add as additional signers for the wallet.
string
A human-readable name for the wallet. At most 100 characters.

Returns

Promise<WalletWithMetadata>
The updated wallet from the refreshed user’s linked accounts. The promise rejects if the update or user refresh fails, or if the wallet is not found in the refreshed user’s linked accounts.