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

x/polkadot/util/hex/index.ts>hexToBn

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

Examples

import { hexToBn } from 'https://deno.land/x/polkadot@0.2.19/util/mod.ts';

hexToBn('0x123480001f'); // => BN(0x123480001f)

Parameters

optional
value: string | null

The value to convert

optional
unnamed 1: ToBnOptions = [UNSUPPORTED]

Options to pass while converting