How can i lock an asset forever?

+1 vote
Hello, i want to lock an asset forever but, with preparelockunspent or lockunspent if the node is restarted it unlocks everyting.

Thank you.
asked Dec 12, 2022 by thomasecodev

1 Answer

+1 vote
 
Best answer

It depends on what you mean by "lock". The usual purpose of these commands is to temporarily lock assets as part of some workflow for exchanging or building a chain of transactions, but it sounds like you want to do something different here.

If you want to ensure the asset units are never sent by MultiChain in a transaction, even after a restart, your best bet is to (a) create a new address in this node using getnewaddress, (b) send the assets from your regular address to this new address, and (c) always use the API commands with the *from suffix to send assets from your regular address.

If you want to make it impossible to ever spend these asset units, you an send them to the chain's burnaddress, which can be obtained from the getinfo command. They will be unspendable forever.

answered Dec 13, 2022 by MultiChain
selected Dec 13, 2022 by thomasecodev
...