Is it possible to delete or transfer a contract?

Hi, I’d like to ‘throw away the keys’ to my NFT collection. Leaving it up for posterity but not allowing myself a back door in. Kind of like a time capsule.

Is there a way to remove my access to the SC? Delete it? Transfer to a new wallet and throw away the key?

Any suggestions for other ideas?

Thank you

Yes, you can use the renounceOwnership function on the smart contract.

Hey Wilkins!

Where exactly can we find the renounceOwnership function for a smart contract?

And if we do such a thing, will it just means no one can alter the contract, right? It won’t delete it or the nfts, correct?

Thanks for you help!

Hey! You can find it on Etherscan. Here’s an example link on Goerli. https://goerli.etherscan.io/address/0x8D0439e46F27E7e078dE4eD02ac2dfD422e57868#writeProxyContract#F11

Calling renounceOwnership (function 11 on Etherscan) will do exactly what you said - no one will be able to alter it but all the current state is preserved.

2 Likes