Skip to main content

toHex

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.1.0


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

Function: toHex()

toHex(bytes): string

Converts a byte string into a hex string.

Parameters​

bytes​

Uint8Array

The byte string to encode.

Returns​

string