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.
-
There is a mapping NFT contract template provided by Poly Network.
-
The mapping contracts should support
ERC-721
,ERC-721Metadata
andERC-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.
- 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.
- Click here and follow the User Manual to test the NFT cross-chain transfer.