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

x/polkadot/util/mod.ts>u8aToBn

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

Examples

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

u8aToHex(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0xf])); // 0x68656c0f

Parameters

value: Uint8Array

The value to convert

optional
unnamed 1: ToBnOptions = [UNSUPPORTED]

Options to pass while converting