Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util/bn/toHex.ts>bnToHex

Package publishing for deno.land/x/polkadot
Go to Latest
function bnToHex
import { bnToHex } from "https://deno.land/x/polkadot@0.2.19/util/bn/toHex.ts";

Examples

import BN from 'https://esm.sh/bn.js@5.2.1';
import { bnToHex } from 'https://deno.land/x/polkadot@0.2.19/util/mod.ts';

bnToHex(new BN(0x123456)); // => '0x123456'

Type Parameters

ExtToBn extends ToBn

Parameters

optional
value:
| BN
| bigint
| number
| null
optional
unnamed 1: NumberOptions = [UNSUPPORTED]