ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / fromUtf8

Function: fromUtf8()

fromUtf8(stringValue): string

Defined in: packages/util/src/internal.ts:148

Should be called to get hex representation (prefixed by 0x) of utf8 string. Strips leading and trailing 0’s.

Parameters

stringValue

string

Returns

string

hex representation of input string