v1

latestOpenAPI 3.0.32026-07-26184851.6 MB
Asset

Update Wallet Asset

This endpoint allows the client to update the status of a specific asset within a wallet.

Body Parameters

KeyRequiredTypeDescription
isActivetruebooleanUpdate asset status tied to a wallet.
patch/v1/wallets/{walletId}/assets/{assetId}

Request body

isActiveboolean

Response

200

messagestring
statusCodenumber

Example response

{
  "data": {
    "asset": {
      "address": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
      "createdAt": "2024-05-14T14:53:33.682Z",
      "decimals": 6,
      "id": "fe04a28c-c615-4e41-8eda-f84c862864f5",
      "isActive": true,
      "name": "USDC Coin",
      "network": "testnet",
      "symbol": "USDC",
      "updatedAt": "2024-05-27T12:24:11.951Z"
    },
    "createdAt": "2024-05-26T08:11:43.129Z",
    "id": "c4c26507-207b-4070-b968-31171881c227",
    "updatedAt": "2024-06-06T09:38:56.015Z"
  },
  "message": "Asset updated successfully",
  "statusCode": 200
}