Skip to content

Documentation / js-sdk-core / updateWallet

Function: updateWallet()

updateWallet(client, wallet_id, sign, input): Promise<OAuthProviderType>

Updates a wallet through the Wallet API.

Parameters

client: default

An instance of the Privy client

wallet_id: Object

The ID of the wallet to update

wallet_id.wallet_id: string

sign: SignWalletRequest

A function that signs a wallet request

input: Input

The input to the Wallet API update request

Returns

Promise<OAuthProviderType>

The response from the Wallet API update request