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

std/encoding/base58.ts>encode

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function encode
import { encode } from "https://deno.land/std@0.197.0/encoding/base58.ts";

Encodes a given Uint8Array, ArrayBuffer or string into draft-mspotny-base58-03 RFC base58 representation: https://tools.ietf.org/id/draft-msporny-base58-01.html#rfc.section.1

Parameters

data: ArrayBuffer | string

Returns

string

Encoded value