Building a simple ERC-20 Token payment screen for a simple shopping cart. I am having an issue figuring out how to use Metamask to allow others to make secure payments. As we dont have access to other users private keys, I must use Metamask as a helper for allowing payments. Nodejs being server-side, doesnt have access to Metamask. So does anybody know how I would go about prompting Metamask to sign and submit a transaction from a Nodejs view. JS script on the view page?

Any help would be appreciated, thanks!

  • 2
    You would do this from JavaScript on the client (in the browser), not from Node.js. – user19510 Aug 21 '18 at 21:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.