function bnToHeximport { bnToHex } from "https://dotland.deno.dev/x/polkadot@0.2.35/util/bn/index.ts"; bnToHex<ExtToBn extends ToBn>(value?: | ExtToBn | BN | bigint | number | null, unnamed 1?: NumberOptions): HexStringExamples import BN from 'https://esm.sh/bn.js@5.2.1'; import { bnToHex } from 'https://deno.land/x/polkadot@0.2.35/util/mod.ts'; bnToHex(new BN(0x123456)); // => '0x123456' Type ParametersExtToBn extends ToBnParametersoptionalvalue: | ExtToBn | BN | bigint | number | nulloptionalunnamed 1: NumberOptions = [UNSUPPORTED]ReturnsHexString