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

x/polkadot/util/string/index.ts>stringToHex

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

Examples

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

stringToU8a('hello'); // 0x68656c6c6f

Parameters

optional
value: AnyString

Returns

HexString