Wallet - Supported data


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


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.