Rename Wallet
Changes the label of a node wallet. The label is only a display name; the wallet keeps its id and address. The owning node is read from the wallet, and that node must be your own node or below it.
Required permission: node:update
Request
PATCH /v2/admin/wallets/{wallet_id}
Parameters
| Name | Type | In | Description |
|---|---|---|---|
wallet_id | string | path | Required. A node wallet's id |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer <access_token> |
Content-Type | Required. application/json |
Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | The new label. An empty or missing value clears the label |
Example
curl --request PATCH \
--url '{{baseUrl}}/v2/admin/wallets/6a53f3dfad48accdb46eaf9e' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Safe-Main-Wallet"
}'
Response
200 OK with an empty body. The new label shows on List Node Wallets as label.
Errors
| Status | Code | Description |
|---|---|---|
| 400 | 10016 | wallet_id is not a valid id |
| 400 | 10001 | Wallet not found, it is not a node wallet, or its node no longer exists (node domain 2) |
| 403 | 10005 | The wallet's node is outside your part of the hierarchy (node domain 2) |
See Errors for the error format and common codes.