Pads a hexadecimal string with zeros to a specified size.
import { padHex } from "thirdweb/utils";const paddedHex = padHex("0x1a4", { size: 32 });console.log(paddedHex); // "0x000000000000000000000000000001a4"
function padHex( hex_: `0x${string}`, options: PadOptions,): `0x${string}`;
The hexadecimal string to pad.
let hex_: `0x${string}`;
The padding options.
let options: PadOptions;
let returnType: `0x${string}`;
The padded hexadecimal string.