2

I would like to associate paraIds with particular parachains as is done in polkadot-js parachains tab. I notice that they hardcode all the paraIds. I can get a list of parachain ids from the relay chain but all I can find is linkage to accounts ( slots / leases ). I can see that if I query each individual parachain and ask it for parachaininfo / parachainId() they will tell me their paraIds but I am wondering if there's a slicker solution? Or is the decentralised nature such that querying the parachains individually is the best option?

(I tag this as xcmp as when you see an xcmp message going to 2012 you need to understand which chain is paraId 2012 for it to make sense.)

1 Answer 1

1

parachaininfo / parachainId() is the only way at the moment. It works well enough.

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.