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

x/polkadot/mod.ts>util.hexToBn

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

Examples

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