0

Regarding this tutorial "Connect a local parachain": https://docs.substrate.io/tutorials/connect-other-chains/local-parachain/, it requires

  • using GUI in a browser to Reserve a ParaID on the relay chain (that is to use Polkadot-JS Apps connecting to your local relay chain)

I have searched on that Polkadot-launch repo https://github.com/paritytech/polkadot-launch/ and found nothing about that.

How can I use a command line(e.g. NodeJs) to do that?

1 Answer 1

2

Here is the pseudo code on how would you do it:

@import polkadot_api;

let reserver = 0xa_address_is_here;
let registrar.reserve(reserver, 2000);

Here is what registrar.reserve do.

Also refer to polkadot guide on how to call transaction and how to call rpc.

At this point, you sucessfully reserved a paraId. Now you can proceed to register parachain

Your Answer

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

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