Content
@
0 reply
0 recast
0 reaction
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 🌐
@matthewfox
Let the users embedded wallet whitelist themselves, validate with a signature?
1 reply
0 recast
0 reaction
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 🌐
@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
Noah Bragg 🔥
@nbragg
ok, that sounds like a good solution! Will try to figure that out. Oh, the other thing I'm doing in this whitelist script is sending some eth to the embedded wallet so they can start transacting right away. So that would still have to happen before they could get started. So might still need some sort of queue solution for that.
1 reply
0 recast
0 reaction
Matthew Fox 🌐
@matthewfox
stick the claim in the join function too :)
1 reply
0 recast
0 reaction