data transaction error
Hello everyone! I need to create a data transaction and I took an example from the documentation https://docs.wavesplatform.com/technical-details/data-transaction.html and it doesn't work.
POST /addresses/data { "sender": "3My8vJAdUDy5E57LtJiL9hv8YbUqe3axjpp", "fee": 100000, "data": [{ "key": "int", "type": "integer", "value": 24 }] } Response: { "error": 1, "message": "failed to parse json message", "cause": null, "validationErrors": { "obj.version": [{ "msg": ["error.path.missing"], "args": [] }] } }
Hi @gapaus, could you try this one { "version" : 1, "sender": "3My8vJAdUDy5E57LtJiL9hv8YbUqe3axjpp", "fee": 100000, "data": [{ "key": "int", "type" : "integer", "value": 24 }] }
This version thingy was missing from the doc -- sorry about that. I'm going to add it there now
Thanks. I have a few more questions.
- When will data transactions appear in mainnet?
- Will they be displayed in the explorer?
- If you use an existing key, only the last value will be visible in the history (GET /addresses/data/{address}/{key}). Is it feature?
When will data transactions appear in mainnet?
When we fix all bugs in v0.13. Then we release it on mainnet and the feature will be available for voting.
Will they be displayed in the explorer?
In the middle of June, I suppose.
If you use an existing key, only the last value will be visible in the history (GET /addresses/data/{address}/{key}). Is it feature?
Right, we store only the latest value for all keys. Storing of all history is too expensive for disk.
@gapaus
- Data Transaction is available on MainNet, you can use full functionality of its in both Waves Client and RestAPI
- Here is example of Data Transaction in explorer - https://nodes.wavesnodes.com/transactions/info/EByjQAWDRGrmc8uy7xRGy2zsQXZQq59bav7h8oTTJyHC
So if you have additional question about Data Transaction, please feel free to create an issue.