[以太坊] geth两种创建账户方式

下面是两种创建账户方式

  1. 命令行使用

    geth account new
  2. geth console里使用

    personal.newAccount()

但是第一种方法有默认目录,本人试验为///root/.ethereum/keystore

  • 如果需要geth console找到geth account new的账户:
    需要将账户从默认目录移动至console对应的keystore文件夹
  • 如果想要geth account new直接到对应的geth console目录
    使用

    geth --datadir "**path to your data dir**" account new

    如geth --datadir ///dapp/test account new

你可能感兴趣的:(以太坊)