0

When I use ETH with JSON-RPC I have error "message": "authentication needed: password or unlock» and If I manually unlock I have other error "message": "insufficient funds for gas * price + value" Any ideas???? POST request

0

You need to pass --rpc and also pass required apis through --rpcapi on the command line to enable it, as per https://github.com/ethereum/wiki/wiki/JSON-RPC#go.

  • 1
    Just make sure youre aware of the security consequences – Sheetal Singala Sep 28 '18 at 9:26
0

First of all it would be better to avoid unlocking account, second - "insufficient funds for gas * price + value" means that your account doesn't have enough balance to perform the transaction.

The message says that your account's balance is lower than (gas limit * gas price), which is often more than a transaction actually takes, because the maximum gas allowance (gas limit) is what matters here.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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