Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Base58.encode

import { Base58 } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/helpers/mod.ts"; 

const { encode } = Base58;

Encodes a byte array payload as a Base58 string as described in the Base58 Encoding Scheme.

Base58.encode(new Uint8Array([55, 66, 77]));
// "KZXr"
function encode(payload: Uint8Array): string;
§
encode(payload: Uint8Array): string
[src]

§Parameters

§
payload: Uint8Array
[src]

Byte array to encode

§Return Type

§
string
[src]