0

Is there any way to unlock the ethereum account when using the infura api.

Can only metamask do it?

I would not like to use metamask because not every user has it on the browser

1 Answer 1

1

Infura doesn't store anyone's private keys, so there's no way to have Infura sign a transaction. The transaction must instead be signed locally before being sent to Infura. MetaMask is one tool available to do that, but you can sign transactions many different ways. (All of them require knowledge of the account's private key.)

1
  • Ok, thank you, now I sign all transactions offline and send to the network. But if I'm doing rawTransaction, how to best set gasPrice and gasLimit?
    – Daniel Soe
    Commented Aug 10, 2018 at 17:43

Your Answer

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

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