Function toBytes

  • Converts a U256 value to bytes

    Parameters

    • value: bigint

      The number to convert

    Returns Uint8Array

    The bytes representation of the number

    Throws

    if the value is negative or too large for U256