Skip to main content
Version: 0.2.38

sdk.core.fromhex

Home > @blaze-cardano/sdk > Core > fromHex

Core.fromHex() function

Converts a hex string to a byte array.

Signature:

declare function fromHex(hexString: string): Uint8Array;

Parameters

Parameter

Type

Description

hexString

string

The hex string to convert.

Returns:

Uint8Array

{Uint8Array} The resulting byte array.