In the documentation getChainProperties
(https://polkadot.js.org/docs/api/examples/promise/chain-info/) is mentioned for getting the properties for a blockchain, but it contains very little amount of information.
How could I query the chainspec of a blockchain from an RPC? I am specifically interested in the name
and para_id
(if a parachain) fields.