以太坊Geth通過私鑰導入新地址到錢包步驟


  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 查看是否導入成功


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM