Converts a hexadecimal string to a Uint8Array of bytes.
import { hexToBytes } from "thirdweb/utils";const bytes = hexToBytes("0x1a4");console.log(bytes); // Uint8Array(2) [ 1, 164 ]
function hexToBytes( hex_: `0x${string}`, opts: HexToBytesOpts,): Uint8Array;
The hexadecimal string to convert.
let hex_: `0x${string}`;
Options for converting the hexadecimal string.
let opts: { size?: number };
let returnType: Uint8Array;
The Uint8Array of bytes.