2

I want to setup my own custom Relay chain for development purposes.

Is there a way to generate a local chain spec for Polkadot (Rococo) something like this:

./target/release/polkadot build-spec --disable-default-bootnode --chain local > localCustomSpec.json
Error:
   0: Invalid input: Error opening spec file `local`: No such file or directory (os error 2)

If I do this:

./target/release/polkadot build-spec --disable-default-bootnode --chain rococo-local > rococoLocalCustomSpec.json

It gives me all the dev keys i.e. Alice, Bob, etc configured in the chain spec.

I want it with no keys so I can add my own custom keys.

1 Answer 1

1

You can remove those keys in customSpec.json but it will still show in polkadot-js explorer.

You need to remove it in the chain_spec.rs you can find it here:

1
  • This a good idea. Thanks!
    – Bruno
    Apr 19, 2023 at 14:09

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.