Skip to main content
Module

x/polkadot/util/index.ts>u8aToBn

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

Examples

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