0

I have a front end connected with metamask wallet and a rest API layer.

My requirement is to sign the transaction from metamask and then to send the signed transaction to rest api to submit the transacion.

4

1 Answer 1

0

I think if metamask sign a transaction they broadcast it to the network. You can retrieve data from the transaction with a callback if you want.

If you want to sign a transaction offline, don't use Metamask but a local file with web3js and your private key hardcoded.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.