Skip to main content
Module

x/polkadot/mod.ts>util.hexAddPrefix

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

Examples

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

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

Parameters

optional
value: string | null

Returns

HexString