# How to integrate minted NFTS from one contract to another?

**URL:** <https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306>\
**Category:** Smart Contracts\
**Tags:** solidity\
**Created:** [May 3, 2022, 1:04am UTC](https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306 "2022-05-03T01:04:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jdoobie618](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@Jdoobie618](https://forum.openzeppelin.com/u/Jdoobie618)\
**Post date:** [May 3, 2022, 1:04am UTC](https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306/1 "2022-05-03T01:04:53Z")

</div>

We currently have an active smart contract where we have minted several hundred NFTs. We want to work on a new contract that will give us more versatility in the future for our community.

Is there a way to "merge" the holders wallets or the NFT from the first contract to the new contract or somehow get them added?

For one of the new features, we want to be able to airdrop all holders but do not have that function in our current contract. Therefore, we need a way to get the current holders to our new contract so they can receive the airdrop as well.

---

<div class="post-metadata">

**Author:** ![cryptodev77](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cryptodev77](https://forum.openzeppelin.com/u/cryptodev77)\
**Post date:** [May 3, 2022, 1:53am UTC](https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306/2 "2022-05-03T01:53:52Z")

</div>

yes. you can build the javascript code that gets holders and mint current NFTs for them to mint free in the code.

---

<div class="post-metadata">

**Author:** ![iam\_k4rut](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/iam_k4rut/32/14734_2.png) [@iam\_k4rut](https://forum.openzeppelin.com/u/iam_k4rut)\
**Post date:** [May 3, 2022, 2:25am UTC](https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306/3 "2022-05-03T02:25:10Z")

</div>

Would you write a JavaScript app to take a current snapshot of the first contract holders, then add them to a specific whitelist, allowing them to mint off the new contract for free? I’m trying to understand exactly what you mean, it sounds like a good idea.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![cryptodev77](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cryptodev77](https://forum.openzeppelin.com/u/cryptodev77)\
**Post date:** [May 3, 2022, 2:44am UTC](https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306/4 "2022-05-03T02:44:43Z")

</div>

Let's dicuss in more detail in telegram  
@cryptodev77

---

<div class="post-metadata">

**Author:** ![Jdoobie618](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@Jdoobie618](https://forum.openzeppelin.com/u/Jdoobie618)\
**Post date:** [May 3, 2022, 11:02am UTC](https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306/5 "2022-05-03T11:02:22Z")

</div>

Hey! Thanks for the reply. I don't want to give them a free mint, I want to try and get their current NFT with all the Metadata and somehow migrate it to the new contract

---

<div class="post-metadata">

**Author:** ![cryptodev77](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cryptodev77](https://forum.openzeppelin.com/u/cryptodev77)\
**Post date:** [May 3, 2022, 4:10pm UTC](https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306/6 "2022-05-03T16:10:50Z")

</div>

you can use interface contract to interact with one contract.

---

<div class="post-metadata">

**Author:** ![iam\_k4rut](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/iam_k4rut/32/14734_2.png) [@iam\_k4rut](https://forum.openzeppelin.com/u/iam_k4rut)\
**Post date:** [May 4, 2022, 2:07am UTC](https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306/7 "2022-05-04T02:07:34Z")

</div>

Do you have an example? I'm looking to call tokenURI function from a new contract, from a contract that is currently deployed. I instantiated the object, and called the tokenURI function, but do not get a value returned.

---

<div class="post-metadata">

**Author:** ![cryptodev77](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cryptodev77](https://forum.openzeppelin.com/u/cryptodev77)\
**Post date:** [May 4, 2022, 2:09am UTC](https://forum.openzeppelin.com/t/how-to-integrate-minted-nfts-from-one-contract-to-another/28306/8 "2022-05-04T02:09:13Z")

</div>

you can make a tokenURI function in interface contract.  
difficult to give the sample.
