Module

x/polkadot/util/bn/fromHex.ts>bnFromHex

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

Examples

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