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