Wallet - Supported data

Hello,

I am wandering is it possible to store data in wallet like this:

{
   "coins":123,
   "card_data":{
      "card_data_one":321,
      "card_data_two":213,
      "card_data_three":312
   },
   "some_other_data":[
      "some_string_data_one",
      "some_string_data_two"
   ]
}

This is error I get “expects changeset values to be whole numbers”

My second question, is it possible to override some data?
For example if wallet has “coins”:500 and I update wallet with “coins”:100, result be “coins”:600 but my ideal expected result would be “coins”:100 (hope this makes sense).

Thanks, Daniel

Hello @danijeld222, the wallet is designed to store whole integer numbers only, so it does not support values that aren’t of that type. Moreover, the wallet APIs only allow to apply additive or decremental differences to the stored values, so it is not possible to set the value directly.
If you wish to store arbitrary values (for example an inventory item) you could use the user’s metadata field, or alternatively a storage object.

Regards