2

I am trying to use truffle to migrate with the following command

truffle migrate --network ropsten

and I face the following error

The method eth_accounts does not exist/is not available

I tried to enter geth and inspect using

> eth.accounts

Error: The method eth_accounts does not exist/is not available
    at web3.js:3143:20
    at web3.js:6347:15
    at get (web3.js:6247:38)
    at <unknown>

Anyone has similar experience or know how to solve it ?

  • 1
    did you enable eth in the cmd or not? something like --rpcapi db,eth,net,web3,personal – Ha ĐANG Sep 6 '18 at 3:37
2

You must specify the parameters using --rpcapi="db,eth,net,web3,personal,web3"

Source

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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