Validates a CAIP-2 chain id and returns it. A Canton networkId is already CAIP-2, so this guards a mistyped value before it reaches a relay rather than transforming anything.
networkId