Update information for a specific wallet using its unique identifier.
Represents the input for updating a wallet.
The ID of the wallet to be updated.
The new name for the wallet.
The new refId for the wallet.
1const response = await client.updateWallet({
2 id: '1f29cce1-ab6c-41ad-84d8-9d223d014881',
3 name: 'Updated name',
4})
5console.log(response.data?.wallet)
1{
2 "data": {
3 "wallet": {
4 "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
5 "address": "0xca9142d0b9804ef5e239d3bc1c7aa0d1c74e7350",
6 "blockchain": "MATIC-AMOY",
7 "createDate": "2023-01-01T12:04:05Z",
8 "updateDate": "2023-01-01T12:04:05Z",
9 "custodyType": "DEVELOPER",
10 "name": "",
11 "refId": "custom_ref_id",
12 "state": "LIVE",
13 "userId": "ext_user_id_1",
14 "walletSetId": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
15 "initialPublicKey": "3eQoJ3ex6uWX3R8F1THF6Y6oBQwPYpF1X9HBM1gjqw7w",
16 "accountType": "EOA"
17 }
18 }
19}