Skip to main content

fromHex

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.1.0


Midnight.js API Reference / @midnight-ntwrk/midnight-js-utils / fromHex

Function: fromHex()

fromHex(str): Buffer

Converts a hex string into a byte string.

Parameters​

str​

string

The hex string to decode.

Returns​

Buffer