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

x/polkadot/util/hex/index.ts>hexAddPrefix

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

Examples

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

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

Parameters

optional
value: string | null

Returns

HexString