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!

1 Like

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

Hi
I had the same question. Will the contract disapear from my Foundation page?
I minted the contract on Mainnet but want to mint tokens on Base so I have to “delete” the ETH contract and deploy it again on Base, right?

You can simply deploy a new separate contract on base. If you didn’t mint the token yet it shouldn’t have any impact.

1 Like

thanks.
and the ETH contract will disapear from Foundation?

If it’s showing right now you may need to message them for removal.