Skip to main content
Module

x/polkadot/mod.ts>util.u8aToBn

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

Examples

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