1

I have the keys separate in a file. I don't want to insert keys for polkadot js app for each node running the relay chain. Same for collator for parachain.

What is command to insert keys through CLI?

1 Answer 1

2

These commands may help you.

./target/release/polkadot key insert --base-path /tmp/relay/alice \
      --chain raw-local-chain-spec.json \
      --scheme Ed25519 \
      --suri "chaos dice yard frown drastic lemon airport basket sport sentence spoil beauty" \
      --password-interactive \
      --key-type gran

./target/release/polkadot key insert --base-path /tmp/relay/alice \
  --chain raw-local-chain-spec.json \
  --scheme Sr25519 \
  --suri "chaos dice yard frown drastic lemon airport basket sport sentence spoil beauty" \
  --password-interactive \
  --key-type babe

Kindly insert your own secret phase of the keys you want to add.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.