Skip to main content

bytesToUint8Array

Callable

  • bytesToUint8Array(data: Bytes): Uint8Array

  • Convert a value from bytes to Uint8Array

    @example
    console.log(web3.utils.bytesToUint8Array("0xab")));
    > Uint8Array(1) [ 171 ]

    Parameters

    • data: Bytes

      Data to be converted

    Returns Uint8Array

    • The Uint8Array representation of the input data