Converts a number or bigint to a hexadecimal string.
import { numberToHex } from "thirdweb/utils";const hex = numberToHex(420);console.log(hex); // "0x1a4"
function numberToHex( value_: number | bigint, opts: NumberToHexOpts,): Hex;
The number or bigint value to convert.
let value_: number | bigint;
Optional configuration options.
let opts: NumberToHexOpts;
let returnType: Hex;
The hexadecimal representation of the input value.