dump_key.sh 575 B

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