Content pfp
Content
@
0 reply
0 recast
0 reaction

Noah Bragg 🔥 pfp
Noah Bragg 🔥
@nbragg
So I have a script that onboards users by whitelisting them onchain when they sign up. What's the best way to handle this if a ton of new users sign up at once? Put them on a queue and run the txs one at a time? and then just let the user know in the ui when it's done. Would this work? better options? Thanks!
7 replies
7 recasts
45 reactions

Matthew Fox 🌐 pfp
Matthew Fox 🌐
@matthewfox
Let the users embedded wallet whitelist themselves, validate with a signature?
1 reply
0 recast
0 reaction

Noah Bragg 🔥 pfp
Noah Bragg 🔥
@nbragg
hmm maybe. How would the smart contract know the embedded wallet should be able to mint though? I haven't done much with signatures.
1 reply
0 recast
0 reaction

Matthew Fox 🌐 pfp
Matthew Fox 🌐
@matthewfox
Server side you would create the signature if the user met some kind of criteria - would contain the address of the user and can join true/false Then that gets passed into the users initial tx and the contract validates the signature if they can join or not That way the join function is publicly callable but only successful with a valid signature from some eoa on your backend
1 reply
0 recast
3 reactions