• Parameters

    • value: string

    Returns ValidationResult

    0 (NO_PREFIX_MATCHED), 1 (INVALID_CHECKSUM), 2 (INVALID_LENGTH) or 3 (VALID).

    Description

    Used to check if a chain id is valid.

    Example

    import { validateChain } from '@taquito/utils';
    const chainId = 'NetXdQprcVkpaWU'
    const validation = validateChain(chainId)
    console.log(validation)
    // This example return 3 which correspond to VALID

Generated using TypeDoc