The following lines of code work (a generator function of redux-saga in my React app) on desktop Chrome. However, it does not work on desktop Safari, iOS, and mobile Chrome (on Android). Did not works means console.log(wallet) did not print anything as if the execution stop at the corresponding line.

Any tips to make it works?

FYI, I have implemented using online Ethereum wallet provider/node such as Bitski and Authereum. So, this is my attempt to implement it differently since the web3 library has the web3.eth.accounts.wallet.create function.

export function* createNewAccount(action) {
  const infuraKey = `${process.env.REACT_APP_INFURA_KEY}`;
  const provider = new Web3.providers.WebsocketProvider(

  const web3 = new Web3(provider);
  const wallet = web3.eth.accounts.wallet.create(1);

Your Answer

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

Browse other questions tagged or ask your own question.