x-poior
  1. Open TextEdit

  2. Paste key into TextEdit without any extra characters or quotations

  3. Save the file as pk.txt to your Desktop

  4. Open Terminal, run command:

    geth account import ~/Desktop/pk.txt
    
  5. After successful import, delete the file from your desktop.

.\geth account import pk.txt,pk.txt放入没有0x前缀的私钥。按之前的命令重启geth进入控制台

(如:geth --testnet --rpcapi="db,eth,net,web3,personal,web3" --rpc --rpcaddr 0.0.0.0 --rpcport 8080 --rpccorsdomain "*" --verbosity 3 console --cache=4096)

,输入 personal.listAccounts 查看是否导入成功

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-04-05
  • 2021-08-24
  • 2021-11-01
  • 2021-11-08
  • 2022-12-23
  • 2021-05-07
  • 2021-06-05
猜你喜欢
  • 2021-12-09
  • 2021-12-09
  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-09-21
相关资源
相似解决方案