Hi all,
I have some questions regarding the ERC721 token smart contract with OPenZeppelin.
Can anybody tell me how to set royalty (say 5%) for NFT collections in smart contract?
If I put the smart contract in marketplaces such as Opensea, then it is easy to set royalty.
But how can I set it in smart contract so that people minting directly from etherscan also have to pay the royalty fee?
Is it a good idea to make whitelistUser() function open to all, or should I make it onlyOwner?
Can you expand on this so that I can be sure I understand what you mean? Would you like to mint a specified amount of tokens during contract deployment?
Yes.
Because I want to deploy the contract to a marketplace (say Opensea).
Without a single minted token I do not think it is possible to 'get listed' in Opensea.
Please correct me if I am wrong, or if there is any better approarch.