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

x/polkadot/mod.ts>util.u8aToHex

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

Examples

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

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

Parameters

optional
value: Uint8Array | null
optional
bitLength = [UNSUPPORTED]
optional
isPrefixed = [UNSUPPORTED]

Returns

HexString