Hi I am building an ERC-721 smart contract. I want to make sure that during the mining, people choose the id of the token to mint.
This could lead to a flood of invalid transactions (because X people could mint the same token at the same time).
So my current idea to solve this issue is:
- before sending the minting transaction, the user first request a signature from my servers (signature is delivered only if the token has not already been requested or minted)
- then the user includes this signature in the transaction, and sends it to the network
- the smart contract checks if the signature is valid, if yes, then the token is now minted
My question is now:
How to prevent people from blocking the whole minting process in the case where the signature is given to the user but the user keeps it and does not send the transaction to the network?
Thanks ✨
Aug 1, 2022, 12:33 AM
Not sure if there's anyway to prevent this unless you use some sort of multisig contract
Aug 1, 2022, 12:35 AM
Thanks for the reply 🔥 what do you mean by "unless you use some sort of multisig contract"?
Aug 1, 2022, 12:37 AM
multi sig contract will have multiple wallets that can give authorization to execute the contract. Say a 2 of 5 multisig wallet, will require at least 2 out of the 5 signers to allow the transaction. So at least a majority of multisig wallets will allow the transaction to execute.
Aug 1, 2022, 12:39 AM
How do you implement this
Aug 1, 2022, 12:57 AM
how would that solve it?
Aug 1, 2022, 12:57 AM
Plenty of examples out there. @Jussec
Aug 1, 2022, 12:58 AM
make the signatures expire after a bunch of minutes I'd say
Just emailed opensea to find out they 99.99% have a bot answering the emails in a very dumb way
Aug 1, 2022, 1:19 AM
Opensea support is pretty bad..
Aug 1, 2022, 2:01 AM
They only cares about your $$
Aug 1, 2022, 4:34 AM
How does that block the whole minting process? If user doesn't want to mint a particular id, that's on him. It won't block others from minting
Aug 1, 2022, 7:39 AM
Yeah they r earning lots of $$ but not respecting the people from them they r generating those $$..
Aug 1, 2022, 11:46 AM
Could you please point me to the right direction
Aug 1, 2022, 1:43 PM
Unleash the banhammer don't be shy
It's been congested for weeks
Aug 1, 2022, 2:09 PM