Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.98 KB

File metadata and controls

31 lines (24 loc) · 1.98 KB

Import NFT

In order to import NFT on Poly Bridge, please make sure that your NFT contract on source chain supports ERC-721, ERC-721Metadata and ERC-721Enumerable interfaces with the ERC-721 standard. Besides, you need to develop and deploy the mapping NFT contracts on target chain. Here are three steps to assist you in completing the process.

Step 1. Development for mapping NFT contract

  • There is a mapping NFT contract template provided by Poly Network.

  • The mapping contracts should support ERC-721, ERC-721Metadata and ERC-721Enumerable interfaces with the ERC-721 standard.

  • The mapping contracts need to implement a minting interface. The method will be invoked by NFTLockProxy in Poly Network. Here is an example:

    function mintWithURI(address to, uint256 tokenId, string memory uri) external {
     require(!_exists(tokenId), "token id already exist");
     _safeMint(to, tokenId);
     _setTokenURI(tokenId, uri);
    }

[!Note|style:flat|label:Notice] The token uri is required not to be empty. If you have other needs, please contact Poly team via for more support.

Step 2. Information submission

  • Submit your NFT information to the Poly Network team.
  • Contact Poly Network via .
  • Waiting for feedback from Poly Network. We'll email you when everything is complete.

Step 3. Test

  • Click here and follow the User Manual to test the NFT cross-chain transfer.