dump_key.sh 548 B

12345678
  1. cd ~/chain33
  2. ./chain33-cli seed generate -l 0 | grep seed | cut -d '"' -f 4 > ~/mySeed.txt
  3. cat ~/mySeed.txt | xargs -I{} ./chain33-cli seed save -p 123456 -s "{}"
  4. ./chain33-cli wallet unlock -p 123456 -s wallet -t 0
  5. sleep 3
  6. ./chain33-cli account list | grep "node award" -B 2 | grep addr | cut -d '"' -f 4 > ~/myNodeAddr
  7. cat ~/myNodeAddr | xargs -I{} ./chain33-cli account dump_key -a {} > ~/myNodePriv
  8. cat ~/myNodePriv | grep replystr | cut -d '"' -f 4 | xargs -I{} echo "Run the cmd in wallet PC: account import_key -l ali00001 -k {} "