Change Web3/React Ethereum script to use private key instead of metamask

Job ID: 30978179

Budget: £10 – £20 GBP

I have a script that interacts with a private ethereum blockchain, the script allows the user to buy and sell tokens.
The script requires metamask so user can sign transactions, i want to remove the support for metamask and store user account and private key in the script so that user doest not require metamask to sign transactions.

See attached script
Related categories: JavaScript Blockchain Ethereum