• Creates a CcdAmount from a number, string, big, or bigint.

    Returns

    The CcdAmount object derived from the ccd input parameter

    Throws

    If a number is passed with several decimal seperators

    Throws

    If a negative amount of micro CCD is passed

    Throws

    If the micro CCD passed is greater than what can be contained in a 64-bit integer

    Parameters

    • ccd: bigint | BigSource

      The amount of CCD as a number, string, big or bigint.

    Returns CcdAmount

Generated using TypeDoc