Build a cross-chain NFT
An NFT collection with cross-chain transfer capabilities using Zeta Connector.
To create a cross-chain NFT collection you will need to deploy NFT contracts implementing Zeta's interfaces and functions to multiple chains.
In a nutshell, your contracts will need to:
- Implement a
crossChainTransferfunction, that burns the NFT on the current chain and uses
zeta.sendto send a message that mints it on the other one.
onZetaMessageto mint the NFT that was burned on the other chain.
crossChainTransfererrors, and re-mint the previously burned NFT.
Here's a code example:
To see a tested, working implementation and try it in testnet, check our examples package.