Parses a CAIP-2 chain id (namespace:reference) per the grammar
pinned in v1.2 §0.3: namespace [-a-z0-9]{3,8}, reference
[-a-zA-Z0-9]{1,64}. Returns null for anything else — including
wrong case (Solana:mainnet-beta), an empty reference
(solana:), a short namespace (s:x) or embedded colons.
Parses a CAIP-2 chain id (
namespace:reference) per the grammar pinned in v1.2 §0.3: namespace[-a-z0-9]{3,8}, reference[-a-zA-Z0-9]{1,64}. Returnsnullfor anything else — including wrong case (Solana:mainnet-beta), an empty reference (solana:), a short namespace (s:x) or embedded colons.