Function parseCaipChainId

  • Parse a CAIP-2 chain ID to an object containing the namespace and reference. This validates the CAIP-2 chain ID before parsing it.

    Returns

    The parsed CAIP-2 chain ID.

    Parameters

    • caipChainId: `${string}:${string}`

      The CAIP-2 chain ID to validate and parse.

    Returns {
        namespace: CaipNamespace;
        reference: CaipReference;
    }