SDK Explorer

Updates a user-controlled wallet by its unique identifier.

Parameters
input
object
Required

Represents the input parameters for updating a wallet.

option 1:
userId
string
Required

Unique system-generated identifier for the user.

id
string
Required

The ID of the wallet to be updated.

name
string

The new name for the wallet.

refId
string

The new refId for the wallet.

option 2:
userToken
string
Required

The JSON Web Token (JWT) representing the user.

id
string
Required

The ID of the wallet to be updated.

name
string

The new name for the wallet.

refId
string

The new refId for the wallet.

Responses
Example
1const response = await client.updateWallet({
2  id: 'wallet-id',
3  userToken: 'dummy-user-token',
4  name: 'New Name',
5})
6console.log(response.data?.wallet)
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.