I connected node with infura via web3js:

 var currentProviderr = new web3.providers.HttpProvider("https://ropsten.infura.io/...");

How to create accounts in infura? How to view them?

web3.eth.getAccounts(function(error, accounts) {
      if (error) {

      infurawallet = accounts[0];

infurawallet is showing undefined...

  • Hi , can you please tell your web3 version. Because i can't connect to ropsten like above.
    – e.k
    Commented Aug 27, 2018 at 13:09
  • web3 ^0.18.4 was the one I used...But then I connected to ropsten using geth instead of infura.
    – angelmaria
    Commented Aug 28, 2018 at 10:14

1 Answer 1


You cannot generate wallet with infura, because they can't hold the private key for you.

You also need to sign transaction before sending them.

You might find Infura's documentation useful.

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