• web3py 5.15.0

i tried


then get

{'code': -32601, 'message': 'The method personal_newAccount does not exist/is not available'}

then figured out that i need to allow interacting with API's and did in terminal

geth --http.addr https://mainnet.infura.io/v3/<#######> --http.api personal,eth,net,web3,admin,txpool 

but still have the same error, what i did wrong? thank you

1 Answer 1


You should try command web3.geth.personal.new_account(self, passphrase) and added --http to command line.

  • i figured out that i cannot use geth method with hosted node, it is only for local node Commented Jan 23, 2021 at 21:48

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.