diff --git a/packages/types-support/src/metadata/README.md b/packages/types-support/src/metadata/README.md index 394726f6de1c..b29d00a283d2 100644 --- a/packages/types-support/src/metadata/README.md +++ b/packages/types-support/src/metadata/README.md @@ -8,6 +8,29 @@ Clone the [polkadot-sdk](https://github.com/paritytech/polkadot-sdk) repository `--dev` sets the flag `--tmp` automatically so there is no need for purging the dev db. +For Polkadot & Kusama - + +Clone the [polkadot-fellows/runtimes](https://github.com/polkadot-fellows/runtimes/tree/main) repository and from the ROOT run: + +```bash +$ unset SKIP_WASM_BUILD +$ cargo build --release -p chain-spec-generator --features fast-runtime +$ ./target/release/chain-spec-generator polkadot-dev > polkadotDevChainSpec.json +``` + +- For kusama just change the `polkadotDevChainSpec.json` to `kusamaDevChainSpec.json`. +- When you have the `polkadot-sdk` cloned, make sure to copy the chainspec from the `runtimes` repository to `polkadot-sdk` repository. + +Clone the [polkadot-sdk](https://github.com/paritytech/polkadot-sdk) repository, checkout the most recent releases tag and from the ROOT run: + +```bash +$ cargo build --release --bin polkadot-prepare-worker --features fast-runtime +$ cargo build --release --bin polkadot-execute-worker --features fast-runtime +$ cargo build --release --bin polkadot --features fast-runtime +$ cp ../runtimes/polkadotDevChainSpec.json . +$ ./target/release/polkadot --chain polkadotDevChainSpec.json +``` + To retrieve the metadata - `curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9944`