Hi @Mindphreaker, this wouldn’t work, the handle is provided by the browser safe_app plugin and it’s just to keep track of the libs objects instantiated in the local memory, so they are not handles that the network understands or stores anyhow.
If you created a public MutableData with a random address you can retrieve its name/address using window.safeMutableData.getNameAndTag
function.
Once you have the address of the public MutableData you can just call window.safeMutableData.newPublic
with the address and type tag, and you should be able to retrieve the stored data using the rest of the MutableData functions.
Another alternative is to make use of the window.safeMutableData.serialise
and window.safeMutableData.fromSerial
functions, which you actually need to use if you are dealing with private MutableData.