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

x/polkadot/util/mod.ts>hexAddPrefix

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

Examples

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

console.log('With prefix', hexAddPrefix('0a0b12')); // => 0x0a0b12

Parameters

optional
value: string | null

Returns

HexString