How can I invalidate a smart contract that has already been deployed? I might want to do so because of business reasons, and maybe beneficial network effects.
Is it possible to invalidate a smart contract?
How can I invalidate a smart contract that has already been deployed? I might want to do so because of business reasons, and maybe beneficial network effects.
Is it possible to invalidate a smart contract?
Unless the contract has a function that calls selfdestruct (initial name suicide), the contract will remain on the blockchain.
Yes, there is a SUICIDE call which will render the contract inoperable. Notably, calling a deleted account won't result in an error so you would want to also have the application check the state of the account.
In Solidity the SUICIDE EVM call is performed by the selfdestruct function.
self-destructcan it be called after doing some api calls to a remote server? I am not sure whether remote api calls in allowed in the smart-contract – niksmac Feb 14 '16 at 05:09selfdestructat any time, but you need to explicitly code it into the contract. Otherwise the contract will live forever – Tjaden Hess Feb 14 '16 at 05:53