Skip to main content

core.fromhex

Home > @blaze-cardano/core > fromHex

fromHex() function​

Converts a hex string to a byte array.

Signature:

export declare function fromHex(hexString: string): Uint8Array;

Parameters​

Parameter

Type

Description

hexString

string

The hex string to convert.

Returns:

Uint8Array

{Uint8Array} The resulting byte array.