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.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityI 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.
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.