Wallets
Update a Wallet

Update a wallet

Amends an existing API wallet. Send only the fields you want to change.

PUT
https://api-prod.useknit.io/api/v1/wallets/{id}
Scopewallets:writeAuthBearer token
⚠️

Updating a wallet does not re-provision its on-chain address. The address returned when the wallet was created stays the same.

Path parameters

idstringrequired

The wallet's id.

Body

networkstringoptional

The wallet's primary network identifier.

typestringoptional

The wallet's type classification.

Request

cURL
curl -X PUT "https://api-prod.useknit.io/api/v1/wallets/d95143d2-c076-49da-b121-b3beed054bf3" \
  -H "Authorization: Bearer $KNIT_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "network": "MATIC_MAINNET" }'

Response

200 OK
{
  "statusCode": 200,
  "message": "Wallet updated successfully",
  "data": {
    "id": "d95143d2-c076-49da-b121-b3beed054bf3",
    "businessId": "a2667393-2c6c-43c9-a288-6167e2b2b591",
    "network": "MATIC_MAINNET",
    "networkId": "MATIC_MAINNET",
    "networks": ["MATIC_MAINNET"],
    "address": "0x1adb0a39bde00fa0957e519584cb5c51fefcb37f",
    "isActive": true,
    "createdAt": "2024-02-26T13:59:19.000000Z",
    "updatedAt": "2024-03-04T09:12:41.000000Z"
  },
  "success": true
}

Errors

StatusCause
401Missing or invalid token, IP not allow-listed, or missing wallets:write
404No wallet with that ID belongs to your business
400A supplied field failed validation