> For the complete documentation index, see [llms.txt](https://yuga.gitbook.io/zkyuga-whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yuga.gitbook.io/zkyuga-whitepaper/developer-guide/erc721/renounceownership.md).

# renounceOwnership

The `renounceOwnership` method serves a crucial role in the ownership management framework adopted by certain ERC-721 token implementations. By invoking this method, the current contract owner voluntarily surrenders control, effectively rendering the contract ownerless. This action is definitive and irreversible, leading to the permanent inaccessibility of administrative privileges once reserved for the owner. The method is integrated into the `ERC721Instance` object.

### Method Signature

```javascript
async renounceOwnership(signer: WalletSigner): Promise<TransactionResponse>
```

#### Parameters

<table><thead><tr><th width="123">Parameter</th><th width="148">Type</th><th>Description</th></tr></thead><tbody><tr><td>signer</td><td>WalletSigner</td><td>An instance of the wallet signer responsible for initiating the transaction. It must correspond to the current contract owner.</td></tr></tbody></table>

#### Returns

* A `Promise` resolving to a `TransactionResponse` object, offering detailed insights into the transaction, including its status and transaction hash.

### Usage Example

Begin by instantiating the desired ERC-721 token contract:

```javascript
const erc721 = zkyugaClient.getERC721Instance("your ERC-721 contract address here");
```

Then, execute the `renounceOwnership` method with the appropriate signer:

```javascript
const signer = zkyugaClient.createWalletSigner("your private key corresponding to the owner");
const transactionResponse = await erc721.renounceOwnership(signer);
console.log(`Transaction Hash: ${transactionResponse.hash}`);
```

### Notes

* **Caution**: The `renounceOwnership` operation is irreversible. Once enacted, the contract becomes ownerless, and any functionality exclusive to the owner becomes permanently inaccessible. Exercise due diligence and ensure the intent to relinquish ownership is deliberate before executing this method.
* Verify that the provided `signer` indeed represents the current owner of the contract. Failure to do so will result in a failed transaction.
* Given the significance of this action, it's prudent to implement additional confirmations or safeguards, especially within user interfaces, to prevent inadvertent execution.

***
