import { hexToU8a } from "https://deno.land/x/polkadot@0.2.17/util/hex/toU8a.ts";
Examples
import { hexToU8a } from 'https://deno.land/x/polkadot@0.2.17/util/mod.ts';
hexToU8a('0x80001f'); // Uint8Array([0x80, 0x00, 0x1f])
hexToU8a('0x80001f', 32); // Uint8Array([0x00, 0x80, 0x00, 0x1f])
Parameters
optional
value: HexString | string | null