[Testnet] Open Action | Cross-chain Zora Mint (v2)
Mint Zora NFTs on Base, with Bonsai on Polygon
Last updated
Mint Zora NFTs on Base, with Bonsai on Polygon
Last updated
This is a technical guide on how to integrate our ZoraLzMintActionV2
open action. More details about the open action can be found here: Cross-chain Zora Mint (v2)
Our ZoraLzMintActionV2
action module is deployed and verified on Polygon
Our contract which receives the messages is ZoraLzCreatorV2
- deployed and verified on Base.
To initialize a publication with the ZoraLzMintActionV2
module, you must provide the details for a Zora NFT where
the chain is Base
the currency is Bonsai (Base)
the sale is active
To process a publication with the ZoraLzMintActionV2
module, you must
Get the total sale price for the mint
Have the actor approve the $BONSAI token transfer to the module
Encode the data needed to process the act
Send the act transaction
There's a lot of steps involved here, so we'll defer to the Lens docs - but here is the general code.
Currently on testnet (Amoy / Base Sepolia)
Any client that processes our Zora open action is eligible for 2.5% (variable) protocol fee on mints
Remember that the open action is to pay for mints in Bonsai on Polygon - even though the Zora NFT is on Base and priced in Base Bonsai.
This function assumes your app domain is whitelisted to use gasless
This function assumes that lensClient
is authenticated with a profile
A note on mint referral rewards. The function above shows how to pass in referrers
data - which when processed by our open action - will include the referrers[0].profileId
profile owner as the recipient for Zora Mint Referral rewards.