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

x/polkadot/util/mod.ts>stringToHex

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

Examples

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

stringToU8a('hello'); // 0x68656c6c6f

Parameters

optional
value: AnyString

Returns

HexString