NFTgate supports secondary sales on your marketplace! Getting started is simple.
The integration steps for secondary sale are nearly identical to primary mint. Just pass in your buy function with the buyer’s wallet address as an argument. There’s just a few things to keep in mind:
Your buy method should not rely on msg.sender.
Your contract will be called by NFTgate’s internal wallets instead of the buyer’s wallet. This means contracts with an on-chain allowlist may require a different mint method that is restricted only to NFTgate.
Your buy method should accept the buyer wallet address (required) and quantity (optional). An example mint method looks like:
function secondaryBuy(address recipient) public payable similar to a mintMethod.
Enabling Secondary Sales
enable secondary sales by passing in a ‘true’ boolean when registering your smart contract
👍 If you already have a published contract and want to integrate NFTgate to your existing marketplace, contract [email protected] for integration support.