# 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 ](https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2F7g062YTclqP6sZ86QyQc%2Fimage.png?alt=media\&token=ed04d7b9-1473-4358-8692-b370601fd39b)

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

![Contract Address Etherscan link](https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FhH1GDV59gMnJRP8w9RXg%2Fimage.png?alt=media\&token=9685b68a-6272-4a0b-b140-dfe9c7723d35)

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](https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FMnOKpQ4eaoCykgAolvuZ%2Fimage.png?alt=media\&token=50c36bd7-29f7-492e-9d6e-1fc853a8c57b)

#### 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.

![](https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FgybcGSlh7vPs8PJygjQK%2Fimage.png?alt=media\&token=f2dd9bd3-80eb-4e1a-a12a-03df7a30c537)

### 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="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2F5xgSDEQTnugYAXz9oS4B%2Fbase.png?alt=media&#x26;token=b39c1097-8888-4961-83be-bca82a15e089" alt="" width="375"><figcaption></figcaption></figure>

&#x20;Copy the contract address under Primary Summary

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2F5EIcE9o4FvogRpGmPe8v%2Fimage.png?alt=media&#x26;token=3ee4917e-2c58-4fef-b8a0-1cfde2af97f5" 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="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FqofzF4qcfxSdXPgUYNhz%2Fimage.png?alt=media&#x26;token=40a0fbed-3481-4f41-bf09-ed336834a914" alt=""><figcaption></figcaption></figure>

   5\. Scroll down once pop-up

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

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FblRdyCr2avOnMq5qmI1V%2Fimage.png?alt=media&#x26;token=aa73dc0e-2b2f-4612-9fcf-f25545af0c0a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2F8DwTICe3yoaPiz2oG0JH%2Fimage.png?alt=media&#x26;token=699240d9-2505-4f74-a073-d1e92adc7c06" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FKWVfqERpZvxtUMvQAR79%2Fimage.png?alt=media&#x26;token=bd2aba01-5d25-4677-b936-47bd59e2dfb0" 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="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FkygaNobLkmi7cIP2hA6P%2Fimage.png?alt=media&#x26;token=a7f647ac-82ba-41eb-8b5d-5019e8df7e79" alt=""><figcaption></figcaption></figure>

Check the contract if it’s successfully executed

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FErKrrVO1NQwlv32Wpckb%2Fimage.png?alt=media&#x26;token=25266c5b-3a46-443a-9161-8452bb90512f" alt=""><figcaption></figcaption></figure>
