Open TextEditweb
Paste key into TextEdit without any extra characters or quotationsapi
Save the file as pk.txt to your Desktopcors
Open Terminal, run command:dom
geth account import ~/Desktop/pk.txt
After successful import, delete the file from your desktop.code
.\geth account import pk.txt,pk.txt放入沒有0x前綴的私鑰。按以前的命令重啓geth進入控制檯rpc
(如:geth --testnet --rpcapi="db,eth,net,web3,personal,web3" --rpc --rpcaddr 0.0.0.0 --rpcport 8080 --rpccorsdomain "*" --verbosity 3 console --cache=4096)get
,輸入 personal.listAccounts 查看是否導入成功it