thirdweb

ERC721DropRestrictedMarkets

ERC721 Drop contract that can disable trading on certain marketplaces

NFT Drop with trading restricted to certain marketplaces

A standard NFT Drop, that by default is non-tradeable.

Once deployed, the contract owner can allow or disallow trading on certain marketplaces explicitly by calling

setApprovedMarketplace(address market, bool approved)

Code inspired by @cygaar_dev from this tweet

1.0.0 Release Notes


Initial release


Approve

(approve)

nonpayable

Inputs

to

address

tokenId

uint256

Published by

View all contracts

Details

  • Publish Date

    Aug 27, 2022

  • Licenses

    Apache-2.0, MIT


  • Learn more about Publish