ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / bytesToUtf8

Function: bytesToUtf8()

bytesToUtf8(bytes): string

Defined in: packages/util/src/bytes.ts:493

Convert a Uint8Array to a UTF-8 string.

Parameters

bytes

Uint8Array

The input bytes to decode

Returns

string

Throws

If the input is not a Uint8Array