Update User Wallet
Updates wallet information for a specific user by their ID.
Request
PUT /v2/users/users/{user_id}/wallet
Parameters
| Name | Type | In | Description |
|---|---|---|---|
user_id | string | path | Required. The ID of the user whose wallet to update |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer token for authentication |
Content-Type | Required. Must be application/json |
User-Agent | Optional. Client application identifier |
Request Body
| Field | Type | Description |
|---|---|---|
wallet_address | string | Required. The new wallet address |
signature | string | Required. Digital signature for verification |
Example
curl --request PUT \
--url '\{\{baseUrl\}\}/v2/users/users/680c02896d91ca0145cfeb81/wallet' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJRCI6IjMxYzU4ZGI4LTQ4MmMtNDhiNS04Yzg0LTg4MDBjNzIwMDFhZCIsImV4cGlyYXRpb24iOjE3NTcwNzc0OTksInN1cGVydmlzb3JFbWFpbCI6InViZXJAYXBleC5jb20iLCJzdXBlcnZpc29ySUQiOiI2NjViMzcyZjNhNzJkN2QwNzkxNTk2YmEiLCJzdXBlcnZpc29yTm9kZUlEIjoiNjY1YWU1MzZhNjM5MmI3NWNmZDQwMzUyIiwic3VwZXJ2aXNvck5vZGVJbnRJRCI6MSwic3VwZXJ2aXNvck5vZGVQYXRoIjoiMSIsInN1cGVydmlzb3JSb2xlSUQiOiI2NjVhZTc5NjEwY2UyMTZkYmMzNWM5M2IiLCJzdXBlcnZpc29yUm9sZVByaW9yaXR5IjoxMDB9.BiBDnRfdsP-3MSMYR81sPeFXu7oqG-PtbPcEGGIB8Fo' \
--header 'Content-Type: application/json' \
--header 'User-Agent: insomnia/11.5.0' \
--data '{
"wallet_address": "0x111111111111111",
"signature": "123jfghea"
}'
Response
A successful response returns no content:
Status Code: 200 OK
Response Body: No content
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success - User wallet information updated successfully |
| 400 | Bad Request - Invalid request parameters or body |
| 401 | Unauthorized - Invalid or missing authentication token |
| 404 | Not Found - User ID does not exist |
| 500 | Internal Server Error |