Mint from specific wallet #962
-
Hello all, I'm working on a project where I would like users to be able to build an NFT through a UI and then be able to mint the NFT upon completion. I found the documentation on how to create a new token at: https://docs.reach.sh/frontend/#launching-tokens However, I'm struggling with how to have a safe automated participant in the contract. I saw in the RPS step 8 tutorial that you can load an account from secret. I would like the Minter Participant to be a specific address, but am unsure how to get the account credentials into the contract in a safe/secure way. I would appreciate any ideas on how to make this happen. Thanks in advance for your time. Edit |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't think I understand what you're building, so my advice may be bad. I think that you want to create an account handle for your user with If instead you mean that you want to mint on their behalf automatically, then you should absolutely not include any secret in the file that you ship to users. Instead, you'd run a traditional Web2 server that is running a server that is using Reach and it would use |
Beta Was this translation helpful? Give feedback.
I don't think I understand what you're building, so my advice may be bad.
I think that you want to create an account handle for your user with
stdlib.getDefaultAccount
and it will use their wallet.If instead you mean that you want to mint on their behalf automatically, then you should absolutely not include any secret in the file that you ship to users. Instead, you'd run a traditional Web2 server that is running a server that is using Reach and it would use
newAccountFromMnemonic
.