I'm trying to make a signed transaction in browser with web3 injected from metamask and send the transaction to my backend-server and then submit it to blockchain.
However, it's hard to find how I can just sign transaction(not sending it) and send it to my backend server.
Thanks for help
Best Answer
You can refer the below for signing data from metamask,
https://docs.metamask.io/guide/signing-data.html#signing-data-with-metamask https://github.com/danfinlay/js-eth-personal-sign-examples