Function: hexToBytes
Utils.hexToBytes
▸ hexToBytes<Length
, LengthHex
>(hex
): Bytes
<Length
>
Converts a hex string to Uint8Array
Type parameters
Name | Type |
---|---|
Length | extends number |
LengthHex | extends number = number |
Parameters
Name | Type | Description |
---|---|---|
hex | HexString <LengthHex > | string input without 0x prefix! |
Returns
Bytes
<Length
>