Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

Is it possible to create and assign any number of NFTs without emitting Transfer event? (ERC721)

For creating many NFTs such that doing it via a for loop would go well over the gas limit, you don't actually mint them. Instead you allocate them (sequentially) within a predefined lower and upper ...
Ashraile's user avatar
  • 125
0 votes

How to enable multi-payment in the NFT marketplace like ETH, USDT, MATIC, DAI, etc?

When you mean any payments, do you mean only other ERC20,or also other cryptocurrencies, or even other Layers of blockchain (L2, L3) ? The three have 3 different answers. If you mean other ERC20, ...
Torof's user avatar
  • 780
1 vote

How to restrict selling and buying nft, but can transfer to user?

Override the default transferFrom function in your ERC721 contract. Within this function, implement logic to check if the transfer is happening within the allowed addresses (users who can receive the ...
Talha Sajid Chaudhary's user avatar
-1 votes

How to restrict selling and buying nft, but can transfer to user?

To restrict selling and buying of specific ERC721 tokens in your marketplace while enabling user-to-user transfers: Customize your ERC721 contract with a transferFrom function. Add a setTransferable ...
Awais Ahmad's user avatar
1 vote

How to restrict selling and buying nft, but can transfer to user?

If you know all the marketplace contracts' addresses which you wanna to block, you can set the blacklist addresses in nft contract and block them, otherwise you can only disable all the contract's ...
Alvan's user avatar
  • 31

Top 50 recent answers are included