# Transfer Ownership of Contract

The transfer of smart contract ownership helps users to transfer their projects to new owners. This can be allowed to occur due to a change of leadership, shifting roles/responsibilities within the project, or even extreme cases such as a project being hacked.&#x20;

Follow the steps below to transfer NFT project ownership to new owners:

1. [For Collections created before March 2023](#for-eth-mainnet-collection-created-before-march-2023)
2. [For Collections created after March 2023](#for-collections-created-after-march-2023) (Diamond Smart Contract)

### For ETH Mainnet Collection created before March 2023.

#### Step 1: Go to Etherscan

* Head to your etherscan/polygon scan link. There are three ways to do this
  * Click the link from your NiftyKit drop page
  * Click it on OpenSea
  * search your contract address  directly on etherscan/polygonscan&#x20;

On your **drop page** click the etherscan/polygon scan button at the top right corner

![Etherscan link on your Drop Page ](/files/5PlQMznmM0Y7XL5f2xMI)

Make sure you are on the contract level. Click your contract address on the profile summary.&#x20;

![Contract Address Etherscan link](/files/cle3uyLIZcBBkD1hRk1b)

The link should be <https://etherscan.io/address/\\[Your> contract address]

#### Step 2: Go to  Contract Tab

* Once you are on the contract level of your etherscan/polygonscan. Go to the Contract tab then click on write contract. Connect to Web3 with the original wallet (ownership wallet).

![Write Contract on your Etherscan or Polygonscan of your Smart Contract](/files/i4cL71jFeQGmzVwSj4KD)

#### Step 3: Add New Ownership&#x20;

* Under section **\[17. transferOwnership]** paste the new wallet address and select "**Write**". The ownership of the smart contract will now be transferred to the new wallet address.
* Please note that completion of this step will incur gas fees.

![](/files/tu8FH8rSRT55NMNykRZY)

### For Collections created After March 2023:&#x20;

{% embed url="<https://www.youtube.com/watch?v=LZA-90d09qU>" %}
How to Transfer Ownership of Diamond Smart Contract
{% endembed %}

Pre- requisite:&#x20;

* Collection's contract address
  * To get the wallet address, go to your NiftyKit Mint Page and click the etherscan button

<figure><img src="/files/3B3oIcWhbQNpX1K0zpCF" alt="" width="375"><figcaption></figcaption></figure>

&#x20;Copy the contract address under Primary Summary

<figure><img src="/files/hvUANuG7Ak5zif4BMuNE" alt="" width="375"><figcaption></figcaption></figure>

1. Go to louper - [louper.dev](https://louper.dev/)
2. Paste your contract addrress under search by addresses
3. Click the correct network on the drop-down
4. Click Search

   <figure><img src="/files/WxRCmvMJLHyAwUvOlWAa" alt=""><figcaption></figcaption></figure>

   5\. Scroll down once pop-up

   6\. Find and Click to ‘’Writable’’&#x20;

<figure><img src="/files/bnYblvwO4BjO8o4OmPeF" alt=""><figcaption></figcaption></figure>

7\. Click "write" and connect your wallet that owns the collection.

<figure><img src="/files/rkyhRceq9fzFgCWTFi2H" alt=""><figcaption></figcaption></figure>

8. Once the wallet is connected, click the drop-down and Choose **transferOwnership**

<figure><img src="/files/LNUQOGRASsErfALRiw1A" alt=""><figcaption></figcaption></figure>

9. Under transferOwnership, you need to add:\
   "0" under Value \
   New wallet address under newOwner (address)
10. Click Write to push the changes (Note: This trasactions requires gas fee to execute this process)

<figure><img src="/files/zshXVhWr40hQ9R5z0GpC" alt=""><figcaption></figcaption></figure>

Check the contract if it’s successfully executed

<figure><img src="/files/DTtGkYE5ay4kuWOWzlDC" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.niftykit.com/nft-collections/collection-management/post-drop-management/transfer-ownership-of-contract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
