Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/encoding/base58.ts>encodeBase58

The Deno Standard Library
Latest
function encodeBase58
import { encodeBase58 } from "https://deno.land/std@0.224.0/encoding/base58.ts";

Converts data into a base58-encoded string.

Examples

Example 1

import { encodeBase58 } from "https://deno.land/std@0.224.0/encoding/base58.ts";

encodeBase58("Hello World!"); // "2NEpo7TZRRrLZSi2U"

Parameters

data: ArrayBuffer | Uint8Array | string

The data to encode.

Returns

string

The base58-encoded string.