Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function encodeBase58
import { encodeBase58 } from "https://deno.land/std@0.212.0/encoding/base58.ts";

Converts data to a base58-encoded string.

Examples

Example 1

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

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

Parameters

data: ArrayBuffer | Uint8Array | string

Returns

string