Renounce the ownership

:computer: Environment


:1234: Code to reproduce

Hello, i know it is easy but i don’t know how to renounce the ownership when i create a crypto, can you guys tell me how to do it, please ?

why this information is unfindable ?

Does your contract inherit ownable?

Is your contract ownable?

It should have a function called renounceOwnership

If you are new to developing please follow OpenZeppelin Upgrades: Step by Step Tutorial for Hardhat

Read through the documentation.

Thank you.

I used the code of binance :

There is a function to renounce ownership which is :

function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);

But I do not know how do I activate the function. I create my token but then how do I use this function please ?


Go to your contract on, connect to Web3, and activate the function if you are the owner.

I highly recommend following beginner tutorials if you are new. Taking the time to learn these things seems like a hassle, but it is worth it in the long run.

Thank you very mutch !