3

Where could I find a sample simple chain spec for substrate ready for production?

3 Answers 3

2

Why not just export one from substrate-node-template ? You can run the following cmd:

${path-to-substrate-template-binary} build-spec
2

Some parachain teams commit them to their Github (so poke around in their Substrate repos).

You can see Polkadot's chain spec here:

There are several others from the ecosystem:

1

Relay chain

The Local relay chain tutorial on substrate.io has links to predefined rococo chain specs for local use. You can download the plain version and browse it.

Parachain

The Connect a local parachain tutorial has instructions how to generate (and modify) specs from the parachain template

./target/release/parachain-collator build-spec --disable-default-bootnode > rococo-local-parachain-plain.json

You can generate one and browse it.

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.