Module

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

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

Examples

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 Parameters

ExtToBn extends ToBn

Parameters

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

Returns

HexString