4

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
  • 1
    did you enable eth in the cmd or not? something like --rpcapi db,eth,net,web3,personal
    – Tony Dang
    Sep 6, 2018 at 3:37

1 Answer 1

5

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

Source

2
  • 1
    Is it intentional that web3 appears twice there?
    – user64747
    Oct 9, 2021 at 17:11
  • No it is not! I will edit it and remove the duplicate. Oct 10, 2021 at 18:17

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.