@wtasnorg/node-lib / encode58
encode58(
input,charset?):string
Defined in: src/base58.ts:72
Encode a string to Base58.
string
The string to encode.
"bitcoin" | "flickr" | "ripple"
The charset variant to use (default: “bitcoin”).
string
The Base58 encoded string.
import { encode58 } from "./base58.js";
encode58("Hello World");
// => "JxF12TrwUP45BMd"
encode58("Hello World", "flickr");
// => "jXf12sRWto45bmD"