Here are what I knew about them:

  1. eth.accounts.create: Generate an address and private key for transaction but did not stored in anywhere.
  2. personal.newAccount: Create an account under node, so that we could get these accounts by eth.getAccounts(). But before transaction, the account need to be unlocked.
  3. eth.accounts.wallet.add: Create an account and private key stored in memory wallet, can get them by eth.accounts.wallet._accounts.

As the topic, which one is more secure, easier to mange in node and recommended to use for erc20 tokens transfer.




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.