Website Data Immutability
danger
Once you make a DeWeb website's data immutable, you will never be able to update this version of your website or delete it to recover tokens locked for storage.
Achieving data immutability for a given DeWeb website is done by deleting the bytecode of the smart contract that handles that website. That way, no person or piece of code can ever alter that data again.
Making a decentralized website immutable using the easy uploader
- Go to easy uploader and connect your wallet.
- Find the website you want to make immutable, click on the three-dot menu and select Make Immutable
.
- Review the data in the confirmation panel, click on approve and sign the operation on your wallet.
note
In the dashboard, websites mades immutable display a padlock icon.
Making a decentralized website immutable using the CLI
- Set up the configuration of the cli if not already done. For more info, check CLI Configuration
- Type the following command:
npx @massalabs/deweb-cli immutable <website_address>
- Type
y
to accept the confirmation prompt.
info
To skip the confirmation prompt, you can add the -y
or --yes
option.