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

x/polkadot/util/mod.ts>bnFromHex

Package publishing for deno.land/x/polkadot
Go to Latest
function bnFromHex
import { bnFromHex } from "https://deno.land/x/polkadot@0.2.11/util/mod.ts";

Examples

import { hexToBn } from 'https://deno.land/x/polkadot@0.2.11/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