isValid

Validates that a chain ID string follows CAIP-2 format.

Return

true if valid, false otherwise

Parameters

chainId

The chain ID string to validate